[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: how to translate XML with XHTML-formatted elem

Subject: RE: Re: how to translate XML with XHTML-formatted element to FO
From: cknell@xxxxxxxxxx
Date: Wed, 13 Apr 2005 09:33:36 -0400
xhtml xsl italic
I followed the replies of the others and read with interest the references to escaped markup. Unfortunately I can't see any escaped markup in your message with my email program so I am at a loss as to how to help.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Magic Finger <magic.finger@xxxxxx>
Sent:     Wed, 13 Apr 2005 09:42:25 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Cc:       <cknell@xxxxxxxxxx>
Subject:  Re:  how to translate XML with XHTML-formatted element to FO

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

>
> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.