xsl-list
[Top] [All Lists]

Re: [xsl] build-in template question

2008-09-04 18:53:06
G. Ken Holman schrieb:
At 2008-09-05 00:17 +0200, Garvin Riensche wrote:
Hello,

I have a question concerning text nodes. If I have an xml file like

<root>
  <e>text</e>
</root>

and a template like

<xsl:template match="e">
  <xsl:copy/>
</xsl:template>

than, the output will be "<e>text</e>".

I don't believe this is true ... you should be getting an empty element. If you are getting text as well, then there is a problem with your XSLT processor.
You're right... I scaled my example down and got the same result without the text. Now I am not puzzeled anymore. ;) Thanks for your advice.

regards,
Garvin


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>