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

Re: XSL : template for attribute

Subject: Re: XSL : template for attribute
From: James Clark <jjc@xxxxxxxxxx>
Date: Fri, 30 Apr 1999 12:03:19 +0700
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


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.