[xsl] XPath problem: figured it out.

Subject: [xsl] XPath problem: figured it out.
From: Ben Trafford <ben@xxxxxxxxxxxxx>
Date: Wed, 07 May 2003 12:37:52 -0400

With much thanks to everyone who offered me help (and with the aid of Mr. Alex Milowski, a god among men), I finally got the answer to my problem. It looks like this:


<xsl:if test="not(entry/title[starts-with(.,'Q')] or entry/episode[starts-with(., 'Q')])">
<xsl:call-template name="insert.text"/>
</xsl:if>


I had forgotten that without the predicate filter, the starts-with was returning all the entry/titles and entry/episodes node -concatenated-. I think I shall go and bury my face in shame, now.

Thanks again for all your help, folks!

--->Ben


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



Current Thread