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: Problem with substring-after syntax


Jennifer,
Try
<xsl:value-of select="substring-after(param[2]/@value, '$global_')"/>

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com 
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of 
> Jennifer Wrightsell
> Sent: 24 October 2001 17:06
> To: 'XSL-List@lists.mulberrytech.com'
> Subject: [xsl] Problem with substring-after syntax
> 
> 
> Hi,
> 
> I'm trying to get the following to work:
> 
> <xsl:template match="object[child::param[@value='Related Topics']]">
> <activex_control type="rt"><xsl:attribute name="number"><xsl:value-of
> select="substring-after(@id, 'hhctrl')"/></xsl:attribute>
> <xsl:attribute name="window"><xsl:value-of
> select="param[2]/substring-after(@value, 
> '$global_')"/></xsl:attribute>
> </activex_control>
> </xsl:template>
> 
> Here's the related section of the source file I'm trying to convert:
> 
> <object id="hhctrl3" type="application/x-oleobject"
> classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"
> codebase="hhctrl.ocx#Version=4,73,8561,0">
> <param name="Command" value="Related Topics" />
> <param name="Window" value="$global_expressions" />
> ...
> </object>
> 
> 
> This is the output I want:
> 
> <activex_control type="rt" number="9" window="expressions"/>
> 
> 
> I keep getting an error because of the third line:
> <xsl:attribute name="window"><xsl:value-of
> select="param[2]/substring-after(@value, 
> '$global_')"/></xsl:attribute>
> 
> The syntax must be wrong.  Can anyone help with this?
> 
> Thanks,
> 
> Jennifer
> 
> 
> Jennifer Wrightsell
> ArcGIS Documentation
> Online Help Team
> ESRI
> (909) 793-2853, ext. 1682
> jwrightsell@esri.com
> 
> 
>  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]