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

Re: servlet to xsl

Subject: Re: servlet to xsl
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Thu, 13 Jun 2002 09:05:46 +0100
servlet to xsl stylesheet
Hi Shaik,

> Could you please tell me how could i get the set Parameter in .xsl ?

First, you have to declare a stylesheet parameter of the same name
using an xsl:param element at the top level of the stylesheet (as a
child of xsl:stylesheet):

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:param name="xslSpec" />
...
</xsl:stylesheet>

You can use a select attribute, or the content of the xsl:param
element, to specify a default value for the parameter when the
stylesheet's used without fixing it (e.g. using .setParameter()).

Then, throughout the rest of the stylesheet, you can access the value
of that parameter like you do variable values, using the variable
reference $xslSpec. For example:

<xsl:template match="rating-and-specification">
  <xsl:value-of select="$xslSpec" />
</xsl:template>

The ability to declare and use stylesheet parameters is built in to
XSLT -- you don't have to use extension functions to do it.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • servlet to xsl
    • shaik - Wed, 12 Jun 2002 02:15:25 -0400 (EDT)
      • <Possible follow-ups>
      • PATEL, DINESH (ISD) - Wed, 12 Jun 2002 03:11:01 -0400 (EDT)
        • shaik - Thu, 13 Jun 2002 00:05:24 -0400 (EDT)
          • Jeni Tennison - Thu, 13 Jun 2002 04:14:55 -0400 (EDT) <=

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-2013 All Rights Reserved.