[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?
Elliotte, Sorry I misunderstood what you were complaining about. Patterns and not Paths. 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. --Keith 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|