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

Re: Re: Simple Replacement

Subject: Re: Re: Simple Replacement
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Tue, 16 Jul 2002 23:59:06 -0700 (PDT)
 Re: Re: Simple Replacement
--- ashu t" <aashut at rediffmail dot com> wrote:

> hello
> i was not involved in this correspondence but
> i was just looking at this and i found something confusing that's why
> i
> am asking this .what i am not getting is in this
> 
> <xsl:template match="/ | @* | node()">
> 
>     <xsl:copy>
>       <xsl:apply-templates  select="@* | node()"/>
>     </xsl:copy>
>   </xsl:template>
> 
> in this template match what are you matching actually with or
> condition? and why

There's no "or condition", it is the union operator. It says that any
node covered by the specified match pattern (a restricted form of an
XPath expression) will be matched by the template.

In this case the nodes that will be matched are all possible types of
nodes, with the exception of namespace nodes, which, due to the
restrictions in the way match patterns are defined,  cannot be
specified as targets of a template rule. 

node() 

is a test for the root node ('/'), any element nodes, text nodes,
comment nodes and processing-instruction nodes.

@* is a test for any attribute node.

> or condition in select.?

again, "|" here is not the "or condition" but the union operator.


Hope this helped.



=====
Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL

__________________________________________________
Do You Yahoo!?
Yahoo! Autos - Get free new car price quotes
http://autos.yahoo.com

 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.