Subject: Re: [xsl] <with-param> with non-text node From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 17 Sep 2003 11:55:48 -0400 |
<my:treefrag> <Parent> child1 child2 </Parent> <my:treefrag>
Enjoy, Wendell
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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] <with-param> with non-tex, Mukul Gandhi | Thread | Re: [xsl] <with-param> with non-tex, Wendell Piez |
Re: [xsl] Noob: where can i find a , Wendell Piez | Date | RE: [xsl] Count() nodes ??, Wendell Piez |
Month |