Subject: RE: selecting text From: Kay Michael <Michael.Kay@xxxxxxx> Date: Tue, 14 Nov 2000 09:52:44 -0000 |
> <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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: selecting text, Jeni Tennison | Thread | RE: selecting text, Ben Robb |
RE: how can I get the subelement, Kay Michael | Date | RE: xalan performance, Lucio Piccoli |
Month |