xsl-list
[Top] [All Lists]

RE: Tree Fragment versus Node Set

2005-09-15 09:14:46
is there a
better way to do this?

No, in 1.0 there isn't. You sometimes need to create result tree fragments.
But don't do it when you don't need to.

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: Kevin L. Cobb [mailto:kevin(_dot_)cobb(_at_)emergint(_dot_)com] 
Sent: 15 September 2005 15:33
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Tree Fragment versus Node Set

I realize that its always better to form my variables into node-sets
versus tree fragments by using the select attribute whenever possible.
But, can one ALWAYS prevent (in XSLT 1.0) making a tree fragment? For
example, if building my variable comes from a template call, 
is there a
better way to do this?

   <xsl:variable name="myVar">
      <xsl:call-template name="buildMyVariableNode">
         <xsl:with-param name="arg1" select="'test1'"/>
         <xsl:with-param name="arg2" select="'test2'"/>
      </xsl:call-template>
   </xsl:variable>

-Thanks,

Kevin

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>