This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Passing a document to xsl stylesheet
- To: "XSL-List" <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl]Passing a document to xsl stylesheet
- From: "Antony Suryadinata" <antodinata at bigfoot dot com>
- Date: Fri, 17 Aug 2001 14:43:37 +1000
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi All,
I have a variable in stylesheet with a document as a value like the following:
<xsl:variable name="Tasks" select="document('http://localhost/tamino/KMS/Projects?_xql=Project')//Task"/>
I have tried to use a parameter and pass a value to it but it doesn't seem to work.
<xsl:param name="Projects"/>
<xsl:variable name="Tasks" select="xalan:nodeset($Projects)//Task"/>
and in my Java:
transformer.setParameter("Projects", dProjects.getElementsByTagName("xql:result"));
where "transformer" is the Transformer object and "dProjects" is a Document object.
Please help!!
Thank you,
Antony
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list