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

Re: creating a xslfo using xslt and a xml file

Subject: Re: creating a xslfo using xslt and a xml file
From: Tony Graham <Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 27 Feb 2007 12:57:12 +0000
Re:  creating a xslfo using xslt and a xml file
On Fri, Feb 23 2007 17:53:12 +0000, Helen McArthur wrote:
> i have a xml file which i need to transform to xslfo
>
> i have created a java class to convert it but it doesnt convert
> correctly, when it converts the file the fo tags are completly removed
> which isnt what i want can anyone tell me what im doing wrong

One thing to do is to get the transformation working using the
command-line versions of the tools before entrusting it to compiled
code.

You would then find the immediate cause of your problems:

...
>                    <fo:flow flow-name="xsl-region-body">
>                      <xsl:template match='/' mode='ffp'>
>                      </xsl:template>
>                    </fo:flow>

<xsl:template> is not allowed at this point.  It seems likely that you
would want to instead use:

   <xsl:apply-templates select='/' mode='ffp'/>

Regards,


Tony Graham.
======================================================================
Tony Graham                  mailto:Tony.Graham@xxxxxxxxxxxxxxxxxxxxxx
Menteith Consulting Ltd              http://www.menteithconsulting.com
13 Kelly's Bay Beach
Skerries, Co. Dublin, Ireland
======================================================================

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.