Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] variable with document() reference

From: 0 8 <0112358@--------->
To:
Date: 9/1/2004 5:32:00 PM
I really should know the answer to this, but I can't seem to get a handle on it.

If I reference an external document in a variable, like...

<xsl:variable name="xln-source" select="document($file)" />

...and then need to loop through it, like...

<xsl:for-each select="$xln-source//set[descendant::start/@xlink:href = $match]">
   <!-- do something -->
</xsl:for-each>

...is the external document being loaded in the variable or it the
for-each call?  I have a different for-each later requiring the same
document and I would like to load it only once.

I'm actually thinking that I may need to move this to keys anyways,
but it's bothering me that I can't answer this question.

Thanks,
-m


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent