xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] build-in template question


Subject: Re: [xsl] build-in template question
From: Garvin Riensche <g.riensche@xxxxxxx>
Date: Fri, 05 Sep 2008 00:52:44 +0200

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


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor