[xsl] Tree Fragment versus Node Set

Subject: [xsl] Tree Fragment versus Node Set
From: "Kevin L. Cobb" <kevin.cobb@xxxxxxxxxxxx>
Date: Thu, 15 Sep 2005 10:32:52 -0400
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

Current Thread