|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Passing Params to Scripts in XSL
"Nigel Barrett" <nigel@xxxxxxxx> writes:
> I want to be able to apply the XSL to only one SECTION of the XML. Which =
> section is decided at runtime so I cannot simply use the attribute =
> element.
> So far I have decided I can do one of the following
> =20
> [1] Pass Parameters to some script in the XSL
> [2] Include some script that I write at runtime.
> =20
> --------
> =20
>
> [1] I'm not sure. I cannot find any documentation or examples of how to =
> pass params to some script in the XSL.
> [2] Is not possible without preprocessing the XSL as MSXSL does not =
> support includes
>
> My preference would be [1], however, as I have said I cannot find any =
> docs on how to go about this. If I can pass params to the XSL at runtime =
> it gives me far more flexibility.
> =20
> Any help would be appreciated.
>
Depends on what XSL engine you are using. With full XML support,
e.g. from XSLJ+JADE, you can define an entity which determines what
you will select, and include the appropriate definition via a modest
amount of command-line wizardry . . .
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@xxxxxxxxxxxxxxx
URL: http://www.ltg.ed.ac.uk/~ht/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








