xsl-list
[Top] [All Lists]

XPath problem: figured it out.

2003-05-07 09:37:52

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



<Prev in Thread] Current Thread [Next in Thread>
  • XPath problem: figured it out., Ben Trafford <=