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

RE: Exclude a template from a stylesheet depending on

Subject: RE: Exclude a template from a stylesheet depending on parameter
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 9 Sep 2003 10:00:37 +0100
exclude stylesheet
In XSLT 2.0 you can do

<xsl:template match="xxxxxx[$param]">

and if $param is false, it won't be matched.

In XSLT 1.0, you can't have any references to variables in the match
pattern and the mode, priority, etc are also fixed at compile time.

In theory you could do

<xsl:template match="xxxxx[document('param.xml')/p='zzz']"

but I'm not sure I would recommend it. 

Michael Kay

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Tim Müller-Seydlitz
> Sent: 09 September 2003 08:24
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Exclude a template from a stylesheet depending 
> on parameter
> 
> 
> Hi all,
> I would like to be able to exclude a template from a stylesheet 
> depending on a parameter.
> How could I do so?
> Could I put the parameter in the priority?
> Could I put the parameter in the mode?
> Thanks
> Tim
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 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.