Re: output of xslt processing instruction?

Paul Libbrecht <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
I just found the trick:

doc = new Document(rootElement); // ....
doc.addContent(0, new ProcessingInstruction("xml-stylesheet",
   "type=\"text/xsl\" href=\"../style.xsl\"");

not exactly obvious but works.

paul


Le 23-juin-08 à 22:46, Paul Libbrecht a écrit :

> Hello JDOMmers,
>
> I'm a bit confused, how can I build the document behind the  
> following serialization with JDOM?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="../style.xsl"?>
> <xx />
>
> thanks in advance
>
> paul

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
smime.p7s (application/pkcs7-signature, 2.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.