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

Re: simple XPath question

Subject: Re: simple XPath question
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Tue, 3 Jul 2001 16:18:04 -0400
Re:  simple XPath question
[Chris Nolte]


> Thank you both, these XPath expressions produce the desired result.  Your
> explanations (and Jeni's) were quite helpful.
>
> The nominal purpose of this example given in Fung's book (in which it
fails,
> as far as I can tell) is to demonstrate template priority, and that
> <xsl:template match='country[1]'> has a higher priority than <xsl:template
> match='country'>.  Accordingly, the solution Thomas Passin and Jeni
Tennison
> posed of using <xsl:when
> test='position()=1'><first-country>...</first-country></xsl:when> ...
inside
> a template matching 'country' is contrary to the purpose of the example,
> though it is certainly a viable approach.
>

Well, it looks like he succeeded in demonstrating the point, since the
country[1] template always got called, but the results weren't what anyone
would actually have wanted.

Cheers,

Tom P


 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.