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

Fw: Formal parameters for stylesheets

Subject: Fw: Formal parameters for stylesheets
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Wed, 3 Feb 1999 09:56:48 +0200
kiki formal
Jason Diamond <sendangels@xxxxxxx> wrote:

>A processor could actually support parameters without changing the spec. If
a
>user did something like this on the command line:
>
>xt -Dfoo=bar test.xml test.xsl
>
>The processor could interpret that as inserting a:
>
><xsl:constant name="foo" value="bar"/>
>
>into the stylesheet. Maybe a {parameter(foo)} function would actually help
so
>that users don't confuse the two concepts, though.


If this is done, not only should that be "{parameter(foo)}", but there
should be an explicit declaration:

<xsl:parameter name="foo" default="..."/>

Somewhere in the stylesheet. Otherwise all hell would break loose when
combining stylesheets, writing GUI for XSL processors, doing DTD
verifications...

Share & Enjoy,

    Oren Ben-Kiki


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


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