|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to translate XML with XHTML-formatted element
Hello Charles,
the required output should be something like the following, where the escaped HTML-tags (like the one for bold (<b>) and italic (<i>) formatting) inside the <TITLE> element of input file should be interpreted/translated as desired. ----------
OUTPUT:
----------
--- books.fo --->
...
<fo:flow flow-name="xsl-region-body">
<fo:block>
<fo:block space-before.optimum="1pt" space-after.optimum="2pt">
<fo:block>Author: Walt Disney</fo:block>
<fo:block>Price : US$ 19.90</fo:block>
<fo:block>Title : <fo:inline font-weight="bold">Donald Duck -
</fo:inline><fo:inline font-style="italic">The True
Story</fo:inline></fo:block>
</fo:block>
<fo:block space-before.optimum="1pt" space-after.optimum="2pt">
<fo:block>Author: Matt Groening</fo:block>
<fo:block>Price : US$ 25.00</fo:block>
<fo:block>Title : <fo:inline font-weight="bold">Homer Simpson For
President</fo:inline></fo:block>
</fo:block>
</fo:block>
</fo:flow>
...
<--- books.fo ------------ INPUT: --------- --- 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 --- Best regards, Maik
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








