[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|