This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: selecting text
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: selecting text
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 14 Nov 2000 09:52:44 -0000
- Reply-To: xsl-list at mulberrytech dot com
> <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