[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: for-each attribute

Subject: Re: for-each attribute
From: Gary L Peskin <garyp@xxxxxxxxxxxx>
Date: Wed, 27 Sep 2000 15:20:37 -0700
xsl for each attribute
xsl list wrote:
> 
> Can anuone, please, explain the difference between the following two cases:
> 1)
> <inside-xsl-tag>
> <xsl:for-each select="in-tag/@*">
> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
> </xsl:for-each>
> </inside-xsl-tag>
> This works fine, the attributes of <in-tag> are assigned to <inside-xsl-tag>
> 
> 2)
> <xsl:param name="it"/>
> <inside-xsl-tag>
> <xsl:for-each select="nodeset:nodeset($it)/in-xsl-tag/@*">
> <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
> </xsl:for-each>
> </inside-xsl-tag>
> Xalan complains about an illegal attributes as it tries to assign the
> attributes of <in-tag> to <xsl:for-each>

This works fine for me.  What is the exact error message that you're
geting?  You might want to insert an <xsl:copy-of select="$it"/> just
before your <inside-xsl-tag> to verify that $it is what you expect.

Gary


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.