[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
Passing Params to Scripts in XSL
Subject: Passing Params to Scripts in XSL
From: "Nigel Barrett" <nigel@xxxxxxxx>
Date: Thu, 14 May 1998 11:09:17 +0100
|

I have the following XML and XSL
<?XML
VERSION="1.0"?>
<SAMPLE>
<SECTION
name="test1">
<DETAILS>Test1</DETAILS>
</SECTION>
<SECTION
name="test2">
<DETAILS>Test2</DETAILS>
</SECTION>
<SECTION
name="test3">
<DETAILS>Test3</DETAILS>
</SECTION>
<SECTION
name="test4">
<DETAILS>Test4</DETAILS>
</SECTION>
</SAMPLE>
<XSL>
<RULE>
<target-element
type="SECTION"/>
<select-elements>
<target-element
type="DETAILS"/>
</select-elements>
</RULE>
</XSL>
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
[1] Pass Parameters to some script in the XSL
[2] Include some script that I write at runtime.
--------
[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.
Any help would be appreciated.
Nigel
---------------------------------o0o--------------------------------- Nigel
Barrett International Information Management Group (IIMG), The
Powerhouse, Pigeonhouse Harbour, Dublin 4, Ireland.
PHONE: +353 1 6687155 FAX: +353 1
6687945 SMTP: nigel@xxxxxxxx HTTP: http://www.iimg.com ---------------------------------o0o---------------------------------
|
BEGIN:VCARD
VERSION:2.1
N:Barrett;Nigel
FN:Nigel Barrett
ORG:IIMG
TITLE:Software Engineer
TEL;WORK;VOICE:+353 1 668 7155
TEL;WORK;FAX:+353 1 668 7945
ADR;WORK;ENCODING=QUOTED-PRINTABLE:;;The Powerhouse,=0D=0APigeonhouse Harbour,=0D=0A;Dublin;Dublin;4;Ireland
LABEL;WORK;ENCODING=QUOTED-PRINTABLE:The Powerhouse,=0D=0APigeonhouse Harbour,=0D=0A=0D=0ADublin, Dublin 4=0D=0AI=
reland
URL:
URL:http://www.iimg.com
EMAIL;PREF;INTERNET:nigel@xxxxxxxx
EMAIL;INTERNET:nigel_barrett@xxxxxxxxxxx
REV:19980514T100917Z
END:VCARD

|
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
RSS 2.0 |
|
Atom 0.3 |
|
|