<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: [jdom-interest] Add an XML reference to an XML file</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>use org.jdom.ProcessingInstruction</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public final static String STYLESHEET = &quot;xml-stylesheet&quot;;</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp; public final static String STYLEPROCESSINGINSTRUCTION = &quot;type=\&quot;text/xsl\&quot; href=\&quot;&quot;;</FONT>
</P>

<P><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ProcessingInstruction stylesheet </FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = new ProcessingInstruction(STYLESHEET, STYLEPROCESSINGINSTRUCTION+mStyleUrl+&quot;\&quot;&quot;);</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; doc.addContent(stylesheet);</FONT>
</P>

<P><FONT SIZE=2>mani</FONT>
</P>
<BR>

<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: David Treves [<A HREF="mailto:dtreves@fastmail.fm">mailto:dtreves@fastmail.fm</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, March 13, 2002 4:44 PM</FONT>
<BR><FONT SIZE=2>To: jdom-interest@jdom.org</FONT>
<BR><FONT SIZE=2>Subject: [jdom-interest] Add an XML reference to an XML file</FONT>
</P>
<BR>

<P><FONT SIZE=2>Hi,</FONT>
</P>

<P><FONT SIZE=2>I wrote an application using JDOM in order to generate XML files. I</FONT>
<BR><FONT SIZE=2>wish to use XSL to format the data. How do I add the XSL file reference</FONT>
<BR><FONT SIZE=2>(&lt;?xml:stylesheet type=&quot;text/xsl&quot; href=&quot;fileURL.xsl&quot;?&gt;) to the XML</FONT>
<BR><FONT SIZE=2>using JDOM API?</FONT>
</P>

<P><FONT SIZE=2>Thanks!</FONT>
<BR><FONT SIZE=2>David.</FONT>
</P>

<P><FONT SIZE=2>-- </FONT>
<BR><FONT SIZE=2>David Treves,</FONT>
<BR><FONT SIZE=2>Java 2 Certified Programmer.</FONT>
<BR><FONT SIZE=2>_______________________________________________</FONT>
<BR><FONT SIZE=2>To control your jdom-interest membership:</FONT>
<BR><FONT SIZE=2><A HREF="http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com" TARGET="_blank">http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com</A></FONT>
</P>

</BODY>
</HTML>