[jdom-interest] Add an XML reference to an XML file
Mani Doraisamy
MDoraisamy at SELECTICA.com
Wed Mar 13 04:12:06 PST 2002
use org.jdom.ProcessingInstruction
public final static String STYLESHEET = "xml-stylesheet";
public final static String STYLEPROCESSINGINSTRUCTION =
"type=\"text/xsl\" href=\"";
ProcessingInstruction stylesheet
= new ProcessingInstruction(STYLESHEET,
STYLEPROCESSINGINSTRUCTION+mStyleUrl+"\"");
doc.addContent(stylesheet);
mani
-----Original Message-----
From: David Treves [mailto:dtreves at fastmail.fm]
Sent: Wednesday, March 13, 2002 4:44 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] Add an XML reference to an XML file
Hi,
I wrote an application using JDOM in order to generate XML files. I
wish to use XSL to format the data. How do I add the XSL file reference
(<?xml:stylesheet type="text/xsl" href="fileURL.xsl"?>) to the XML
using JDOM API?
Thanks!
David.
--
David Treves,
Java 2 Certified Programmer.
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20020313/00353052/attachment.htm
More information about the jdom-interest
mailing list