Topic
  • 2 replies
  • Latest Post - ‏2012-10-11T05:29:47Z by devdp
devdp
devdp
37 Posts

Pinned topic How to access the stylesheet params

‏2012-10-10T07:56:51Z |
Hi,

Could anyone please let me know how can I access the Stylesheetparams that are automatically bound to the default parameter namespace.

http:(DPIP:PORT)/product?SearchCritera=B&SearchBy=BOTH
I am able to see these values
{http://www.datapower.com/param/query}SearchBy BOTH
Using this as namespace "xmlns:dpquery="http://www.datapower.com/param/query"
But I am unable to access them in my xslt
I am using the below code:
<xsl:value-of select="$dpquery:SearchCriteria"/>
<xsl:copy-of select="$dpquery:SearchBy"/>
Am I missing something here?

dp
Updated on 2012-10-11T05:29:47Z at 2012-10-11T05:29:47Z by devdp
  • HermannSW
    HermannSW
    4885 Posts

    Re: How to access the stylesheet params

    ‏2012-10-10T13:59:27Z  
    Find attached little sample stylesheet dpquery.xsl, and see this screeenshot:



     
    Hermann<myXsltBlog/> <myXsltTweets/>
  • devdp
    devdp
    37 Posts

    Re: How to access the stylesheet params

    ‏2012-10-11T05:29:47Z  
    • HermannSW
    • ‏2012-10-10T13:59:27Z
    Find attached little sample stylesheet dpquery.xsl, and see this screeenshot:



     
    Hermann<myXsltBlog/> <myXsltTweets/>
    Hi Herman,

    Thanks for your detailed description...
    It is working now..

    dp