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

RE: Conditional Include statements

Subject: RE: Conditional Include statements
From: Emmanuel Begue <eb@xxxxxxxxxx>
Date: Thu, 2 Apr 2009 11:20:35 +0200
RE:  Conditional Include statements
> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
> Sent: Thursday, April 02, 2009 10:03 AM
>
> what people are usually looking for is some kind of dynamic
> despatch mechanism, and of course there are existing ways
> of achieving this in XSLT that work perfectly well.

One way to do this with Saxon (that I recently found out thanks
to a reply from Michael) is:

  <xsl:output saxon:next-in-chain="a.xsl" name="a"/>
  <xsl:output saxon:next-in-chain="b.xsl" name="b"/>

  <xsl:result-document href="output.xml" format="{if (condition) then 'a' else
'b'}">
    <xsl:sequence
select="elements_to_be_processed_further_by_either_a_or_b"/>
    </xsl:result-document>

Regards,
EB

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.