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---------------------------------