Subject: Re: [xsl] searching for occurrences of unique string-value and replacing with string value of another node From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx> Date: Wed, 11 Jun 2008 15:07:47 +0100 |
2008/6/11 Julie <julie.newcome@xxxxxxxxx>: > <xsl:template match="@*|node()"> > <xsl:apply-templates select="@*|node()"/> > </xsl:template> > > Now I want to be sure I understand that correctly. I understand this > much... that match is looking for an attribute (@) and selecting the > contents (*), No. @* means the same as attribute::* which in turn means all nodes on the attribute axis. Assuming the context node is an element, that means all attributes of the element. Otherwise it means zero nodes (as only elements have attributes). >but is the (node() ) section looking at the value as a > text node? Doesn't xslt already understand that as a text node? node() means child::node() (as child is the default axis), which means all child nodes of the context node. Attributes don't count as children (for some reason).
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] searching for occurrences, Julie | Thread | Re: [xsl] searching for occurrences, Julie |
Re: [xsl] searching for occurrences, Julie | Date | RE: [xsl] Norwegian sort collation, Steve Ylvisaker |
Month |