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

Re: XSL command line parameter

Subject: Re: XSL command line parameter
From: Petr Cimprich <petr@xxxxxxxxxxxx>
Date: Fri, 19 May 2000 11:51:43 +0200
sablotron command line
Sablotron (actually sabcmd - its command line interface) support it this
way:

sabcmd sheet.xsl data.xml "$type=art"

$type then appears as a top-level stylesheet parameter.
The use of single or double quotes may depend on the shell used. Single
quotes work for bash, double quotes work in Windows.

Regards
Petr

Sydney wrote:

> Hi
>
> Is it possible to put on the command line some
> parameter which will be use in the XSL file?
> My aim is to make XSL filter on XML files.
>
> For Instance
> <db>
> <museum type="art">bla</museum>
> <museum type="paint">bla</museum>
> </db>
>
> I want to create an XSL Style sheet in order to create
> a new XML file resulting of my search.
> <xsl:template match="museum[@type=A COMMAND LINE
> VARIABLE]>
> <xsl:copy-of select="."/>
> </xsl:template>
>
> I hope, its obvious.
>
> Thanks
> Sydney
>
> ___________________________________________________________
> Do You Yahoo!?
> Achetez, vendez! Ŕ votre prix! Sur http://encheres.yahoo.fr
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

--
Petr Cimprich
Ginger Alliance Ltd.
www.gingerall.com



 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.