[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

using document() function - first iteration is OK; sec

Subject: 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
xsl variable iteration

> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.