[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XSL : template for attribute
Kay Michael wrote: > (Incidentally, I can't see an easy way in the April 99 spec to test in a > boolean expression whether the current node matches a match-pattern. I would > have thought it would be useful to allow something like: > > <xsl:if test="matches(CHAPTER[TITLE]//PARA)"> > > to test whether the node is a PARA with a CHAPTER ancestor that has a TITLE > child. Expressions are powerful enough that this isn't necessary: <xsl:if test="from-self(PARA) and from-ancestors(CHAPTER[TITLE])">...</xsl:if> > In SAXON I made the test a match pattern because a match pattern can refer > to a select pattern but not the other way round.); Right, but it means you have to wrap things with ".[" and "]" a lot. James 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
|