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: 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: WD of XSL requirements released, Frank Boumphrey | Thread | Re: Passing Params to Scripts in XS, Henry S. Thompson |
Re: WD of XSL requirements released, Ben Trafford | Date | XML + (XSL | CSS) ?, Daniel Glazman |
Month |