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]

Passing a document to xsl stylesheet


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


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