Subject: Re: [xsl] how to translate XML with XHTML-formatted element to FO From: Alex Milowski <alexml@xxxxxxxxxxxx> Date: Tue, 12 Apr 2005 18:14:30 -0700 |
how can I translate XML files (like the following), which contain XHTML-formatted text in one element, to PDF using Apache FOP ?
--- books.xml ---> <BOOK> <AUTHOR>Walt Disney</AUTHOR> <PRICE>19.90</PRICE> <TITLE><b>Donald Duck - <i>The True Story</i> </b></TITLE> </BOOK>
<BOOK> <AUTHOR>Matt Groening</AUTHOR> <PRICE>25.00</PRICE> <TITLE><b>Homer Simpson For President</b></TITLE> </BOOK> ... <--- books.xml ---
You can translate the escape XHTML with a XML pipeline as implemented by the smallx [1] project at java.net:
<p:pipe name="xhtml-convert" xmlns:p="urn:publicid:IDN+smallx.com:pipeline:1.0" >
<p:subtree select="TITLE"> <p:parse/> </p:subtree>
<p:pipe name="xhtml-convert" xmlns:p="urn:publicid:IDN+smallx.com:pipeline:1.0" >
<p:on-error> <p:template> <TITLE bad="true"><xsl:copy-of select="/*/node()"/></TITLE> </p:template> </p:on-error>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to translate XML with, Wendell Piez | Thread | RE: [xsl] how to translate XML with, cknell |
RE: [xsl] How to output trademark c, Maria Amuchastegui | Date | Re: [xsl] Extra newline remove on t, omprakash . v |
Month |