Subject: Re: [xsl] how to translate XML with XHTML-formatted element to FO From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 12 Apr 2005 17:19:11 -0400 |
Good luck, Wendell
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 ---
I mean how should an appropriate XSL stylesheet be designed best to handle straight forward FO formatting for <AUTHOR> and <PRICE> as well as for additional transformation of XHTML-formatted <TITLE> ?
I just need some general ideas on how I can process XML files with sub-structured (XHTML-formatted) elements by one (or more) XSL stylesheet(s).
My problem is not to translate XHTML-formatted text to FO resp. PDF (for this purpose I already have a working "xhtml-to-fo.xsl" stylesheet). Rather I have no idea at the moment on how to integrate the existing xhtml-to-fo.xsl code and templates into the main XSL stylesheet for generating the FO output.
Currently I'm only able to translate content of <TITLE> element as plain text to FO output, i.e. FO output for <TITLE> shows the tags <b>...</b> and <i>...</i> as is, without applied bold and italic formatting on title text.
Any hints, tips or code fragments would be very much appreciated!
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] how to translate XML with XHT, Magic Finger | Thread | Re: [xsl] how to translate XML with, Alex Milowski |
[xsl] Transforming XML Blockquotes , Edward Bryant | Date | [xsl] How to output trademark chara, Maria Amuchastegui |
Month |