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

Re: Can a match attribute use a non-pattern expression?

Subject: Re: Can a match attribute use a non-pattern expression?
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Wed, 05 May 1999 10:50:12 -0400
template match attribute

Sorry I misunderstood what you were complaining about. Patterns and not

Since match patterns by themselves do not have a current context

Things like

<xsl:template match=".">...</xsl:template>

<xsl:template match="from-children(para)>

don't make sense, since you are not selecting from anything.

For verbosity perhaps some has- and is- Axis identifiers could be added
to the language..

<xsl:template match="is-element-with-name(foo)">

<xsl:template match="is-element-with-name(foo)[has-children(bar)]">

<xsl:template match="is-element-with-name(*)[has-attribute(foo)]">

<xsl:template match="is-attribute-with-name(foo)">

Personally I don't like the verbose model.


Elliotte Rusty Harold wrote:
> Yes but relative location paths and steps are not part of patterns.

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

Current Thread


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.
First Name
Last Name
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.