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

Re: conditional XSL to XSL

Subject: Re: conditional XSL to XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Sat, 8 Apr 2000 09:49:30 +0100 (BST)
Re: conditional XSL to XSL
 Why? What about the note in 7.6.2, which seems to forbid
 this in two different ways? Perhaps in this context of aliased
 named spaces <xsl:template ...> is not really a named XSLT
 object, and the value of its match attribute isn't really an
 expression or pattern.

that note doesn't apply in your case. Your XSL elements are bound to the
prefix x: If xsl: is not bound to the XSL namespace (which it can't be if
your example runs at all) then xsl:template has nothing to do with XSL
it is just some random literal result element that will be copied to the
output. Note the namespace-alias has no effect on the interpretation of
the elements in the stylesheet, it just causes a last minute namespace
switch as the result tree is exposed.

In particular the match attribute is an attribute of a literal result
element and thus an AVT, so you can use {}. (Some people commented
that you couldn't use {} with xsl:template match= but you didn't make
sufficiently clear (or they didn't notice:-) that in your sheet xsl:
elements were not XSL.)

David


 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.