This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Substituting value in XML Attribute


> If I write XSL like this
> <xsl:variable name="myvar" select="@ID"/>
> <MYCustomer ID="$myvar">
> </MYCustomer>
>
> the result is comming as
>     <MYCustomer ID="$myvar">
>     </MYCustomer>

You want ID="{$myvar}". It's called an attribute value template,if you want
to look it up.

Mike Kay
Software AG


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]