Srinivasa,

XSLTC does support result-tree fragments as parameters to
the <xsl:for-each/> and <xsl:apply-templates/> elements.
The conversion from result-tree fragment to node-set is
automatic so there is no need for a node-set() function
(even though we may want to add one). You can currently
use result-tree fragments with XSLTC as follows:

  <xsl:variable name="blob">
    <rabarbra>
      <foo><A/></foo>
      <foo><B/></foo>
      <foo><C/></foo>
    </rabarbra>
  </xsl:variable>

  <xsl:template .....>
    <xsl:apply-templates select="$blob"/>
    <xsl:for-each select="$blob">
      ...
    </xsl:for-each>
  </xsl:template>

Note that the result-tree fragment cannot be part of an
XPath expression - it must be used by itself only.

Morten Jorgensen,
XML Technology Centre,
Sun Microsystems Ireland ltd.

Srinivasa Manthena wrote:
> 
> Hi,
> 
> We are using xt:node-set kind of syntax very
> extensively and I have seen in release-notes that
> XSLTC doesn't support node-set implementation. Is that
> true or is there any expected date that this can be
> enhanced?
> 
> Any input would be really great.
> 
> Thank you.
> 
> -Srinivasa
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com

Reply via email to