This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: extracting part of an attribute value


Thanks to everyone who responded.  This works wonderfully!

Jennifer

Date: Fri, 12 Oct 2001 19:09:03 +0100
From: "Michael Kay" <mhkay@iclway.co.uk>
Subject: RE: [xsl] extracting part of an attribute value

> I have the following in my XHTML file:
> 
> <script type="text/javascript" language="JavaScript"
> src="ms-its:Transitioning.chm::/81Help.js">
> </script>
> 
>  and I want to extract just the name of the .chm file (in this case,
> "Transitioning.chm") to use in my output XML file. 

Something like

substring-before(
 substring-after(@src, ":"), "::")

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]