Subject: [xsl] Re: Re: Simple Replacement From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Tue, 16 Jul 2002 23:59:06 -0700 (PDT) |
--- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Importing HTML into my ou, Jarno . Elovirta | Thread | [xsl] Re: Re: Simple Replacement, Dimitre Novatchev |
[xsl] Importing HTML into my output, abhishek srivastava | Date | RE: [xsl] Importing HTML into my ou, Jarno . Elovirta |
Month |