|
Subject: [xsl] using document() function - first iteration is OK; second iteration is Empty. From: "Jasthi, Siva R." <siva.jasthi@xxxxxxx> Date: Mon, 6 Oct 2003 15:59:51 -0500 |
> hi -
>
> I am processing an input xml file (say input.xml) via (report.xsl) to generate a report.
>
> report.xsl in turn loads another *xml file (schema.xml) through document() function so as to process the input.xml. <schema.xml> contains some look-up information dictating how <input.xml> need to be processed.
>
> Here is how I am referencing the "schema.xml" in the "report.xsl".
>
> <xsl:variable name="schemaFile" select="document('schema.xml')"/>
> <xsl:variable name="schemaRoot" select="$schemaFile/Schema"/>
> <xsl:variable name="schemaList" select="$schemaRoot/SchemaFactors"/>
>
> When I run the report first time (my appserver is weblogic 7.0), everything is working fine. I see the results I wanted.
>
> However, when I run the report for the second time during the same session, I am getting "schemaList" as empty.
>
> The values of "schemaFIle" and "schemaRoot" appear to be correctly loaded in both the cases. The problem is with "schemaList" variable which is coming out empty during the second iteration.
>
> can any of you please throw some pointers on why this is happening and how to resolve this?
>
> thanks
> - siva jasthi
>
Siva R Jasthi
EDS PLM Solutions
4233 Lexington Avenue N., Suite 3290
Arden Hills, MN 55126-6198
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Problem with inheriting t, J.Pietschmann | Thread | RE: [xsl] Problem with inheriting t, Ryan Graham |
| [xsl] Problem with inheriting the i, Abhijit Junnare | Date | Re: [xsl] Problem with inheriting t, J.Pietschmann |
| Month |