exactly! thanks.
"cking"
<cking(_at_)telenet(_dot_)be
> To
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
08/17/2004 03:57 cc
PM
Subject
Re: [xsl] partial attribute
Please respond to matching
xsl-list(_at_)lists(_dot_)mu
lberrytech.com
if I understand you correctly, you could use the starts-with function:
<xsl:variable name="section"
select="'http://www.somedomain.com/section/'"/>
<xsl:if test="/html/head/page_url[starts-with(@url, $section)]">
...
</xsl:if>
HTH,
Anton Triest
Tuesday, August 17, 2004 9:41 PM ARiley(_at_)edgarsnyder(_dot_)com wrote:
I have an xml file that contains:
<html><head>
<page_url url="http://www.somedomain.com/section/page.html" />
[...]
and a corresponding xsl fragment:
<xsl:if test="
/html/head/page_url[(_at_)url='http://www.somedomain.com/section/']">
do something different
</xsl:if>
What I'm trying to accomplish is to apply a template to an entire 'url'
section but this doesn't appear to work. What's the preferred way of
testing for a partial attribute match?
--+------------------------------------------------------------------
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>
--+--