Would implementing xf:replace be something that people would find useful?  I
had a look at the document and it seems, well, spartan at best given the
massive variety of regex formatting syntax out there.  My inclination would
be just to drop the GNU regex library in, after "widening" it.  Questions
are:

1) Are the GPL/Apache licenses sufficiently compatible that if I did this it
would be distributable?
2) What would be the appropriate place to add the code?  Presumably in XPath
somewhere?  (I'm not very familiar with the source tree at present).  Any
pointers as to where to start would be great!

Thanks,

Mark

> -----Original Message-----
> From: Juergen Hermann [mailto:[EMAIL PROTECTED]
> Sent: 24 October 2001 03:58
> To: Mark Weaver; Xalan-C-Users
> Subject: Re: regexp in xsl:value-of?
>
>
> On Wed, 24 Oct 2001 00:10:14 +0100, Mark Weaver wrote:
>
> >> <xsl:value-of select="regexp(/value,'</*[^>]*>','gi','')"/>
>
> You can write an extension function that does this. And if
>
> http://www.w3.org/TR/xquery-operators/
>
> were implemented, you could use xf:replace. ;)
>
>
>
>

Reply via email to