This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: passing params to xslt-sheet directly in <?xml-stylesheet....?>


If you want to write a parameter into the XML, which is passed from the XML to the XSLT, why you don't write the param not directly in the XML?

example:

<root>
<param name="name" value="value"/>
...
the rest of your tree
...
</root>

xsl:

<xsl:stylesheet>
<xsl:param name="name" value="/root/param/@value"/>
...
rest of your stylesheet
...
</xsl:stylesheet>

Regards,

Joerg

Martin Pletzer wrote:

Hi list,
I want to transform using IE without scripting.
My xml gets a href to the xslt.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xls" href="myxslt.xslt"?>
...
So far so good, but now I want to pass some parameters to the myxslt.xslt.
Is there anything like a param attribut in <?xml-stylesheet ...> instruction
?
I want to achieve the same goal as xsltproc.addParameter("name", "value");
do.

Thanks.


Martin Pletzer
Entwicklung
--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]