[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: XML question!

From: Phil Endecott <spam_from_subversion_users_at_chezphil.org>
Date: 2006-01-29 22:10:01 CET

Res Pons wrote:
> Last week, thanks to your help I figured out how to pull an xml report
> out of Subversion.

> I wrote an xsl (style sheet) to create a report as follows:

..
> <xsl:when test="msg = 'product-build788'">
..

> QUESTION: In the xsl file where I have marked it with *'s, if I look for
> the whole string exactly 'product-build788' it works but does anyone
> know how I can pass wildcards in the 'when' node, like 'product-build*'
> since the build numbers will alway change?

I suggest xsl-list@lists.mulberrytech.com for XSLT questions.

The string functions in XSLT are described here:
http://www.w3.org/TR/xpath#section-String-Functions

One function is starts-with, which does what you want:

<xsl:when test="starts-with(msg,'product-build')">

--Phil.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Jan 29 22:11:05 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.