This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How To Access a param from style sheet
- To: xsl-list at mulberrytech dot com
- Subject: RE: How To Access a param from style sheet
- From: "Weakliem, Gordon" <Gordon dot Weakliem at Den dot Galileo dot com>
- Date: Wed, 18 Oct 2000 17:47:36 -0600
- Reply-To: xsl-list at mulberrytech dot com
Did you declare the parameter in the stylesheet?
<xsl:param name="sortBy" />
> -----Original Message-----
> From: Bharat.Chintapally@CommerceQuest.com
> [mailto:Bharat.Chintapally@CommerceQuest.com]
> Sent: Wednesday, October 18, 2000 4:23 PM
> To: XSL-List@mulberrytech.com
> Subject: How To Access a param from style sheet
>
>
> Hello:
> I am new to XSLT and also to this list. I have a quick
> question about
> accessing parameters from XSL style sheets. I am using Xalan
> XSLT processor
> in my servlet to transform XML into HTML using XSL. I am
> able to set the
> stylesheet param using
>
> xslProcessor.setStylesheetParam("sortBy", "receiverId");
>
> Now I am trying to access this param in the xsl stylesheet to do my
> sorting.. I tried something like the following but I am not
> having much (/any) luck..
>
> <xsl:sort select="*[name() = $sortBy]"/>
>
> Any help is really appreciated..
>
> Thanks
> -- bharat
>
> ---------------------------------------------------------------
> Bharat Chintapally
> CommerceQuest Inc.
> bharat.chintapally@commercequest.com
> New Phone # 813-639-6478
> ---------------------------------------------------------------
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list