[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

starts-with any number


Subject: starts-with any number
From: "Garriss Jr.,James P." <jgarriss@xxxxxxxxx>
Date: Mon, 18 Oct 1999 08:29:17 -0400

If I want to know if a variable starts with a specific number (let's use 5), I can do this:

  <xsl:if test="starts-with($variable, '5')">
    ...do something...
  </xsl:if>

But what is the correct syntax if I want to know if this variable starts with any number, 0 to 9?

[Using XT from the August spec]

TIA,

James Garriss | The MITRE Corporation | jgarriss @ mitre.org


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




Current Thread