[xsl] RE:

Subject: [xsl] RE:
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 23 May 2001 18:35:55 +0100
> I have the following code in my XSL file.
> 
> <img name="<xsl:value-of select="."/>" src="arrow.gif"/>
> 

XML doesn't allow elements to be nested within attributes.

You need an attribute value template:

<img name="{.}" src="arrow.gif"/>

Mike Kay
Software AG

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


Current Thread
  • [no subject]
    • Howard Lim - Wed, 23 May 2001 12:29:48 -0500
      • cutlass - Wed, 23 May 2001 18:12:58 +0100
      • Christopher Go - Wed, 23 May 2001 10:32:18 -0700
      • Keith - Wed, 23 May 2001 12:33:09 -0500
      • Michael Kay - Wed, 23 May 2001 18:35:55 +0100 <=