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] Nodesets in XSLT 1.1 and 1.0


Subject: Re: [xsl] Nodesets in XSLT 1.1 and 1.0
From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jun 2010 20:49:01 +0200

not commenting on why you should not use XSLT1.1,
you have a typo in your for-each
<xsl:for-each select="."/>

should be <xsl:value-of select="."/> or <xsl:copy-of select="."/>


At 20:41 22/06/2010, you wrote:
<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exslt="http://exslt.org/common">

  <xsl:variable name="data">
    <root>
      <test>1000</test>
      <test>2000</test>
      <test>3000</test>
     </root>
   </xsl:variable>

   <xsl:template match="/">
     <xsl:for-each select="$data/root/test">
        <xsl:for-each select="."/>
     </xsl:for-each>
   </xsl:template>
</xsl:stylesheet>


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