[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

Subject: RE: how to translate XML with XHTML-formatted element to FO
From: cknell@xxxxxxxxxx
Date: Tue, 12 Apr 2005 14:33:15 -0400
translate xml
You have shown us your input, now how about some idea of what the output should be. I have read your post several times and I can't understand what problem you are trying to solve.

It may be that you need to process the document in stages or you may need advice on constructing a template. I just can't understand what you need using the information you have given.
Charles Knell
cknell@xxxxxxxxxx - email

-----Original Message-----
From:     Magic Finger <magic.finger@xxxxxx>
Sent:     Tue, 12 Apr 2005 20:12:25 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   how to translate XML with XHTML-formatted element to FO


how can I translate XML files (like the following), which contain
XHTML-formatted text in one element, to PDF using Apache FOP ?

  --- books.xml --->
    <AUTHOR>Walt Disney</AUTHOR>
    <TITLE><b>Donald Duck - <i>The True Story</i>

    <AUTHOR>Matt Groening</AUTHOR>
    <TITLE><b>Homer Simpson For President</b></TITLE>
  <--- 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

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!

Best regards,

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.