[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Convert String to (node-set)

Subject: RE: Convert String to (node-set)
From: mxmodi@xxxxxxxxxxxxxxx
Date: Wed, 7 Feb 2001 09:12:34 -0600
java convert string to node
You are right and I did try out the Xalan 2 extensions. Here is a snippet
of the XSL code just FYI.

<xsl:stylesheet version="1.0" xmlns:xsl
="http://www.w3.org/1999/XSL/Transform" xmlns:xalan
="http://xml.apache.org/xalan" exclude-result-prefixes="xalan">
  <xsl:template match="/">
      <xsl:variable name="npath" select="." />
      <xsl:value-of select="xalan:evaluate($npath)" />
  </xsl:template>
</xsl:stylesheet>



                                                                                                                                 
                    "Michael Kay"                                                                                                
                    <mhkay@xxxxxxxxxxxx>               To:     <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>                                 
                    Sent by:                           cc:                                                                       
                    owner-xsl-list@xxxxxxxxxxxx        Subject:     RE:  Convert String to (node-set)                       
                    rytech.com                                                                                                   
                                                                                                                                 
                                                                                                                                 
                    02/07/2001 05:02 AM                                                                                          
                    Please respond to xsl-list                                                                                   
                                                                                                                                 
                                                                                                                                 



> So, the obvious Q is, how do I integrate a SAXON extension
> fn. when I want
> to use XALAN (LAtest release, 2.0) from my JAVA program.

I think that almost all the Saxon built-in extension functions are written
to make use of internal Saxon interfaces, so they won't work with a
different processor.

But the good news is that Xalan-Java 2 has its own implementations of some
of the extension functions that were previously only in Saxon, for example
there appears to be a xalan:evaluate().

I think it should be possible, though I haven't proved it, to write your
stylesheet to use xx:evaluate(), and map xx to the Saxon extension function
in a <saxon:script> element (just introduced in Saxon 6.2), and to the
Xalan
extension function in <xalan:script>, so that the stylesheet works with
either processor.

Mike Kay


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







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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.