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: selecting text


> <add-attr attrname = "manager">
>   <add-value>
>      <value assoc-ref = "75845kjl6jh46kj6456">cn=Joe
> Bloggs,cn=users,dc=domain,dc=com</value>
> </add-value>
> </add-attr>
> .......
> 
> How do I assign the "cn=Joe Bloggs...." to a variable.

<xsl:template match="add-attr">
<xsl:variable name="joe" select="string(add-value/value)"/>

The string() is to make sure the variable has a string as its value, not a
node-set. Whether this is necessary depends on how you want to use the
variable.

Mike Kay


 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]