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

Re: <with-param> with non-text node

Subject: Re: <with-param> with non-text node
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2003 11:55:48 -0400
what is non text nodes
Prashant,

An alternative that avoids using the extension function is to place your reference node-set directly into your stylesheet:

<my:treefrag>
  <Parent>
    child1
    child2
  </Parent>
<my:treefrag>

and then simply grab it as document()/*/my:treefrag/Parent (document('') retrieves the stylesheet).

Enjoy,
Wendell

At 02:56 AM 9/17/2003, you wrote:
Hi Prashant,
I would do it as below --
1)
Convert the tree fragment to a node set first, using
the vendor:nodeset extension function.

<xsl:variable name="treefrag">
  <Parent>
    child1
    child2
  </Parent>
</xsl:variable>

then doing -- e.g. xalan:nodeset($treefrag)

2) Then pass the nodeset to the called template..
<xsl:call-template name="XXXX">
  <xsl:with-param name="YYYY"
select="xalan:nodeset($treefrag)">
  </xsl:with-param>
</xsl:call-template>

This way I can process the tree fragment e.g. --
<Parent>
    child1
    child2
</Parent>
in called template using XPath..


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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.