xsl-list
[Top] [All Lists]

Re: [xsl] xsl:sequence

2006-08-09 05:16:36
andrew welch wrote:

  Hi

The difference between copy-of and xsl:sequence is more
subtle and can be highlighted with this example:

  I'd insist also on the identity of the nodes in the sequence.  For
example:

    <xsl:variable name="copy" as="element()">
      <xsl:copy-of select="/path/to/element"/>
    </xsl:variable>

    <xsl:variable name="sequence" as="element()">
      <xsl:sequence select="/path/to/element"/>
    </xsl:variable>

    <xsl:value-of select="/path/to/element is $copy"/>
    <xsl:value-of select="/path/to/element is $sequence"/>

  Note also this is an equivalent way to define $sequence:

    <xsl:variable name="sequence" select="/path/to/element"/>

  Regards,

--drkm

























        

        
                
___________________________________________________________________________ 
Découvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet 
! 
Yahoo! Questions/Réponses pour partager vos connaissances, vos opinions et vos 
expériences. 
http://fr.answers.yahoo.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>