xsl-list
[Top] [All Lists]

partial attribute matching

2004-08-17 12:41:32




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?



<Prev in Thread] Current Thread [Next in Thread>