On 4/18/08, Peter Nabbefeld <[EMAIL PROTECTED]> wrote:
> I've been using sth like this:
> <xsl:variable name="external" select="document('ext.xml')"/>
> <xsl:variable name="fragment">
>  <xsl:for-each select="$fragment">
>    <xsl:copy-of select="key(...)"/>
>  </xsl:for-each>
> </xsl:variable>

This looks a bit odd ...

You have:

<xsl:variable name="fragment">
   <xsl:for-each select="$fragment">
      ...
   </xsl:for-each>
</xsl:variable>

You have a variable 'fragment'. You assign some contents to it (using
xsl:for-each). Since the variable still isn't assigned a value, how
can you do <xsl:for-each select="$fragment"> at this position?

This would have been right:

<xsl:variable name="fragment">
   <xsl:copy-of select="key(...)"/>
</xsl:variable>

But I don't know if this is what you want.

Reply via email to