[jdom-interest] Re: output of xslt processing instruction?

Paul Libbrecht paul at activemath.org
Mon Jun 23 21:53:31 PDT 2008


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2203 bytes
Desc: not available
Url : http://www.jdom.org/pipermail/jdom-interest/attachments/20080624/40fe6d8e/smime.bin


More information about the jdom-interest mailing list