SGMLXML.net A place for SGML and XML application developers.

March 23, 2005

Regular Expressions and XSLT

Filed under: XSLT — cangione @ 12:56 pm

I was working on a stylesheet today that begs for a regular expression.

The Problem:

    <file path='connector\fig\82675-48040.svgz'/>

I want to use parts of the path attribute but since the length varies I
can't use the string() function. It appears there is no good way to do
it in XSLT 1.0

The XSLT 2.0 spec is a working draft at this point. It appears that in
2.0 something like this will be available:

    <xsl:value-of select='matches([REG EXP])'/>



CA

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress