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

RE: [xsl fo] xsl to a minimum / statements 'on the fly

Subject: RE: [xsl fo] xsl to a minimum / statements 'on the fly'
From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx>
Date: Fri, 14 May 2004 17:45:43 +0200
transform to xsl
> -----Original Message-----
> From: Mathieu Van Echtelt


Hi,

<snip what="MK's reply to the OP" />
> yes I know it looks strange (i'm still exploring this
> design/strategy).
>
> My rationale behind this strategy:
>
> I want to put most in xml so I only need 1 xsl file per output
> medium (e.g. pdf, html) but per output medium only
> 1 xsl file is able to generate x different 'reports'.
>

What exactly do you mean by this? This depends very much on the design of
your stylesheet(s).
You could start from one XML containing a simple indicator for the
designated output (maybe in a node that is a child of the root; you could
also pass this into the transform via an xsl:param ), and process this with
one XSL. The XSL file can include/import other stylesheets, and depending on
the value of the indicator described above, use moded templates to output an
XSL-FO tree, an HTML page, a different XML format...

> disadvantage: For different reportstyles of same data I need
> different xml files.
>

This will (for the most part anyway) not be necessary. In case you decide to
use xsl:param to feed the output mode into the transform, it is conceivable
to use one (and only one) XML as source for the transform to XSL-FO, HTML...

<snip />
> <elem attr="{expr}">  ??
>
> I don't get it yet but I'll investigate this answer further.
> (I'm not a regular xsl user)

It means that you can do:

<fo:page-sequence master-reference="{$page-layout}">
...

instead of the faulty code in your OP.


HTH!

Greetz,

Andreas

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.