IBM WebSphere DataPower Community Forum IBM Webspere DataPower XI50
October 07, 2008, 08:15:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: IBM WebSphere DataPower SOA Appliance Forum - Just Launched come share your knowledge!!! These forums will be a great place to build a community. This site is not associated with IBM.
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Stylesheet Params  (Read 417 times)
cstetson
Newbie
*
Offline Offline

Posts: 1


View Profile Email
« on: December 06, 2007, 08:51:09 AM »

I understand how to set StylesheeParams when configuring an XML Firewall, but how do you access them from within you xslt's.

Thanks
Logged
nmcglennon
Newbie
*
Offline Offline

Posts: 10


nmcglennon
View Profile
« Reply #1 on: December 17, 2007, 11:54:20 AM »

First off, you need to create a stylesheet parameter like the following:

{http://www.datapower.com/param/config}parameterName

Assign it a value (ex: test1234).

Then, in your XSLT stylesheet, do the following:

<xsl:param name="dpconfig:parameterName" select="''"/>
<xsl:variable name="parameterName" select="$dpconfig:parameterName"/>

Now, you can use the parameterName variable within the XSLT stylesheet and that internal variable will have the specific value that you assigned through the stylesheet parameter (ex: test1234).

This is assuming you did not change the namespace for the stylesheet parameters though...

Hope this helps!
Logged

Senior Consultant
Security Practice
Ascendant Technology
Pages: [1]   Go Up
  Print  
 
Jump to:  



Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Seo4Smf © Webmaster's Talks
This Site is not associated with IBM