Subject: Re: [xsl] Determining the context node From: Evan Lenz <evan@xxxxxxxxxxxx> Date: Fri, 14 Apr 2006 00:23:14 -0700 |
Hi Evan & everyone,Great! I'm glad it was helpful.
Thanks very much for your help--the context node has often confused me and
this message from Evan is the most helpful information on it I've ever
gotten (especially the part about for-each and apply-templates being the
only things that change it). <xsl:value-of select="name()"/> is exactly what
I was looking for.
Re: xsl:copy, since I didn't know how to get the name of the node, I wasFor all node types except for elements, <xsl:copy/> behaves exactly the same as <xsl:copy-of select="."/>
trying to print out the content of the node using either xsl:copy or
xsl:copy-of. I would think the only real way you could do this is to use
xsl:copy...with xsl:copy-of if the current node had no text content (and
perhaps contained other elements), you would get the text content of all the
element(s) below it so you couldn't really tell what node you were on if you
were in a deep tree structure. The problem with xsl:copy, however, was that
if you were on a node with no text content itself (e.g. the node only
contained other elements) you would get nothing.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Determining the context n, Allison Bloodworth | Thread | Re: [xsl] Determining the context n, Evan Lenz |
RE: [xsl] Convert milliseconds into, Michael Kay | Date | Re: [xsl] Is Saxon the *only* XSLT , Colin Paul Adams |
Month |