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

RE: Built in templates and issues getting the XSLT pr

Subject: RE: Built in templates and issues getting the XSLT processor to navigate an input document
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Tue, 25 Sep 2007 11:25:31 +0100
RE:  Built in templates and issues getting the XSLT  pr
<xsl:template match="a/b">
  <xsl:message> b found </xsl:message>
    <xsl:apply-templates select="a/b/c"/>

Your b element does not have a child called a, so select="a/b/c" starting at
b will select nothing. You want select="c".

And you don't need match="a/b", match="b" will do fine. You only need
match="a/b" if you want to distinguish <b> elements that are children of an
<a> from those that aren't.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: Dunk, Michael (Mike) [mailto:mikedunk@xxxxxxxxxxxxx] 
> Sent: 25 September 2007 11:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Built in templates and issues getting the XSLT 
> processor to navigate an input document

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.