what is visco,difference between patterns and templates, xml%%%what is visco - Re: What is the difference between patterns - "*

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

Re: What is the difference between patterns - "*|/" and "*"

Subject: Re: What is the difference between patterns - "*|/" and "*"
From: Keith Visco <kvisco@xxxxxxxxx>
Date: Fri, 12 Feb 1999 09:49:54 -0500
what is visco
Tyler wrote: 
> My take on things is that:
> 
> <xsl:template match="//*">
> 
> is effectively the same as:
> 
> <xsl:template match="*">
> 
> However I don't think this is a legal pattern anyways because a
> ComposeExpression does not start with the union operator.

// is not the Union operator, but the Ancestry operator and starting a
MatchExpr or SelectExpr with // is valid.
| is the union operator.

<xsl:template match="//*"/> and <xsl:template match="*"/> are
effectively the same as you pointed out. Sometimes there are more than 
one way of doing something, however

<xsl:apply-templates select="//*"/> and

<xsl:apply-templates select="*"/>

are very different in that "//*" will start at the document and select
all descendant elements, where "*" will start at the current element and
select only it's child elements.

--Keith


 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.