xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: selecting text


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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor