xsl-list
[Top] [All Lists]

RE: [xsl] Passing a Map as parameter to XSLT.

2006-03-06 14:30:16

When I do
<xsl:for-each select="$XSLTParameter">
     <xsl:for-each select="key('xsltParameterMap','somekey')">
    ........
</xsl:for-each>

it works well.

  Mmh, the following is more idiomatic:

    <xsl:for-each
        select="$XSLTParameter/key('keyname', 'value')">
      ...
    </xsl:for-each>


But unfortunately it isn't legal in XSLT 1.0.

Michael Kay
http://www.saxonica.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>