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(_at_)mulberrytech(_dot_)com
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