Hi,
Thank you, substring-after and substring-before are perfect.
The real world data actually has the 3 types of domain names
EG:
<server dn="media1.mysite.com" id="server392" os="FreeBSD 5.1"/>
<server dn="media2.mysite.com" id="Server488" os="Fedora Core 1"/>
...
<server dn="media10.mysite.com" id="Server433" os="Fedora Core 1"/>
<server dn="members1.mysite.com" id="server322" os="Debian Linux"/>
<server dn="members2.mysite.com" id="Server435" os="Fedora Core 2"/>
...
<server dn="members10.mysite.com" id="Server491" os="FreeBSD 4.11"/>
<xsl:sort
select="substring-after(substring-before(@dn, '.'),'media')"
data-type="number"
order="ascending"/>
I don't think I can use a regular expression as the second parameter
for substring-*
Topxml.com says : 'The string that is searched in the source string'.
Is it possible to substing-* on '/media|members/' ?
Many thanks.
Regarda,
Rudi.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--