xsl-list
[Top] [All Lists]

Re: [xsl] Transforming multiple XML files into one file

2006-07-05 08:22:50
Chad Chelius wrote:

  Hi

The <movie> element is the element within each of the files that I am
referencing that I want to "pull" into the new XML file. Does that  
make sense?

  So if I understand well, you want:

    <xsl:for-each select="
        document(document('list.xml')/files/file)/story">
      <movie>
        <xsl:copy-of select="."/>
      </movie>
    </xsl:for-each>

instead of:

    <xsl:template match="movie">
      <xsl:copy-of select="
          document(document('list.xml')/files/file)/story"/>
    </xsl:template>

  Regards,

--drkm


























        

        
                
___________________________________________________________________________ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.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>
--~--