Login 
 
 Pref   Your subscriptions   Home   Help 
users@ml.mod-xslt2.com
mod-xslt2 - Users Mailing List
   
 
List info
 
 
 
Subscribe
 
 
Unsubscribe
 
 
Archive
 
 
Post
 



Advanced search
2004 01 02 03 04 05 06 07 08 09 10 11 12
2005 01 02 03 04 05 06 07 08 09 10 11 12
2006 01 02 03 04 05 06 07 08 09 10 11 12
2007 01 02 03 04 05 06 07 08 09 10 11 12
2008 01 02 03 04 05 06 07 08 09 10 11 12

  previous   Chronological   next       previous   Thread   next  

XSLT2 and node-set() ? joeyslists
  • From: joeyslists@xxxxxxxxxxxxx
  • To: users@xxxxxxxxxxxxxxxx
  • Subject: XSLT2 and node-set() ?
  • Date: Mon, 13 Dec 2004 19:09:52 +0000
  • User-agent: Mutt/1.5.6+20040722i


  • Hi I would really like to make use of the XSLT node-set() function.
    Does anyone know if/how this is possible with mod-xml2?

    The node-set() function will allow me to convert a Result Tree Fragment
    (XML created and stored inside a variable) into a proper Node Set, so
    that it can be re-used as input to other templates or XPath queries.

    http://www.exslt.org/ has implementations of node-set() for many XSLT
    processors, but I could not get any working in mod-xslt2.

    [ I also couldn't find a working node-set() function for Mozilla's built
    in XSLT processor, Transformiix. :-/ ]

    Is mod-xslt2 supposed to implement XSLT standard 1 or standard 2? The
    latter suggests that the node-set() function should be built-in. (Some
    XSLT processors have even decided to implement RTFs as NodeSets.)

    Here's an example of trying to use node-set():

    http://hwi.ath.cx/xslt/src/tests/return_xml.xsl

    Whilst I agree that overuse of node-set() will result in poorer
    performance than a better designed set of templates, there are also
    situations where it is unavoidable, and very useful.

    For example, does anyone know of another way by which I may accept a
    string of XML as a CGI parameter, and then appy-templates to that XML,
    or query it with XPath?

    Thanks, Joey UK.

    PS, iff I find a solution, then this page may become more interesting!

    http://hwi.ath.cx/xslt/live/jumpgate/jumpgate.xml


      Powered by Sympa