|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








