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] Extracting value from node with formatter elements


Subject: Re: [xsl] Extracting value from node with formatter elements
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 14 Apr 2008 14:32:44 +0100

value-of returns the string value of an element, you want to return an
element node, so use xsl:copy-of instead.

or better just do

   <xsl:variable name="elementText" select="." />

Then the variable holds the original element (rather tahn a copy of it)

David


Current Thread
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