[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Passing a Map as parameter to XSLT.

Subject: RE: Passing a Map as parameter to XSLT.
From: "DEVAL SHAH" <devals9@xxxxxxxxxxx>
Date: Mon, 06 Mar 2006 19:00:37 +0000
RE:  Passing a Map as parameter to XSLT.
Hello,
Thank you for the help.

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

it works well.

Thank you for the help.

Deval



From: "Michael Kay" <mike@xxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE:  Passing a Map as parameter to XSLT.
Date: Sun, 5 Mar 2006 22:09:52 -0000

>
> When I do <xsl:copy-of select="$XSLTParameter"/>
> the XML that I have passed in the parameter gets printed onto
> the output.
> It prints the following
> <map>
> <entry key="..." value="..."/>
> .......
> </map>
> .......

That's good. So you're passing the parameter OK.
>
> So I think there is some error in the xsl:key.
>
> The XSLT processor I am using is XALAN processor.
>
> Do you have any idea if I can use xsl:key with the parameter
> that I am passing ?

Yes, you can. The most important thing is to make sure that when you call
key(), the context node is a node in the "map" document.

Michael Kay
http://www.saxonica.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2011 All Rights Reserved.