[Home] [By Thread] [By Date] [Recent Entries]
Your problem is well-known. It's because of two different data-types in
XSLT: nodeset and result tree fragment. In your variable $Modules you
are creating a RTF. For a nodeset you have to convert this via processor
specific extension functions. I don't know the extensions of Sablotron,
but Saxon, Xalan and MSXML have them. An example:
<xsl:stylesheet version="1.0" xmlns:xsl=".." xmlns:xalan="http://xml.apache.org/xalan" exclude-result-prefixes="xalan"> <xsl:variable name="Modules">
<module>InternalCS</module>
<module>FileCS</module>
</xsl:variable><xsl:template match="/">
<xsl:for-each select="nodeset($Modules)/module">
<!-- do anything -->
</xsl:for-each>
</xsl:template></xsl:stylesheet> You have to do something like this in your event-template. Regards, Joerg Jakub.Valenta@xxxxxxxx wrote: Hi all, I am trying to iterate over a variable using for-each, and I am getting errors with majority of parsers :-(. The only one working is Sablotron (I am using cooktop, to test which engine works). -- System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



