Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xsl work with JDOM

Status
Not open for further replies.

flowertang

Programmer
Sep 27, 2002
9
HK
When I add this instruction &quot;Document.addContent(ProcessingInstruction)&quot; to the xml, it will add &quot;<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;C:\temp.xsl&quot;?>&quot; to the end of document, like this:

<--------------------------------------------------------->
<?xml version=&quot;1.0&quot; encoding=&quot;BIG5&quot;?>
<Records>
<Field>1</Field>
</Records>
<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;C:\temp.xsl&quot;?>
<=--------------------------------------------------------->

So when i execute this xml, it only display the content of xml without with with xsl? How can I add &quot;<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;C:\temp.xsl&quot;?>&quot; back to the beginning of the xml

<?xml version=&quot;1.0&quot; encoding=&quot;BIG5&quot;?>
<?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;C:\temp.xsl&quot;?>
<Records>
<Field>1</Field>
</Records>

Thanks a lot~~~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top