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

Re: Transformation into XSL:FO

Subject: Re: Transformation into XSL:FO
From: tcn@xxxxxxxxxxxxx (Trevor Nash)
Date: Fri, 18 May 2001 12:57:25 GMT
xsl include for transformation fo
>I want to transform a XML source document into a XSL:FO Stylesheet via a XSL
>transformation.
>
Rather than give you an answer on a plate, I will tell you where to
look.  Better for the soul ;-)

Read up on xsl:namespace-alias.  The objective is to allow you to
write your input stylesheet like this:

<xsl:template name="insertheader">
   <oxsl:template match="object[@type='page']">
	<fo:block break-before="page">
		<fo:block><oxsl:value-of
select="property[@name='name']"/></fo:block>
		<fo:block color="white">.</fo:block>	
	</fo:block>
   </oxsl:template>
</xsl:template>	

Note the prefix 'oxsl' on XSL elements which are to be placed in the
output stylesheet.  This needs to be declared as a fictitious
namespace in the input stylesheet.  The namespace-alias instruction
causes the ouput to declare the XSL namespace instead.

When you check the output, remember that the prefix can be anything:
its the namespace URI that matters.

Trevor Nash

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.