The GNU and Apache licenses are _not_ compatible.  Also, we support
platforms other than Linux, and we would need to make such an extension
available on all platforms, not just one.

There is no actual need to put the extension into Xalan proper.  You can
install an extension function at the application level, and make it
available to your stylesheets.  Thus, you can develop this extension on
your own, on the platform(s) of your choice.  There is an extension
function sample application that ships with the source distribution.  If
you're going to work on this, you should get the latest code from the CVS
repository, as some stuff has changed which will affect your extension
functions.

Dave



                                                                                
                         
                      "Mark Weaver"                                             
                         
                      <[EMAIL PROTECTED]         To:      "Xalan-C-Users" 
<[email protected]>   
                      >                        cc:      (bcc: David N 
Bertoni/CAM/Lotus)                 
                                               Subject: regexp in xsl:value-of? 
                         
                      10/24/2001 07:05                                          
                         
                      PM                                                        
                         
                                                                                
                         
                                                                                
                         



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