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

how to clear document buffer

Subject: how to clear document buffer
From: Ming Yu <myu@xxxxxxxx>
Date: Wed, 06 Nov 2002 23:45:40 -0500
clear document
Hi,

What I need to do is to read the whole xml record from a database and write it to a temporary file. And then, use the document function in the stylesheet to read the file. The temporary file is rewritten depending on the parameter I passed to the java method: $key.

This is what I'm doing:
<xsl:variable name='record' select="document(recsdetail:writeRecsXmlFile($recsTmpFile, $key))/xml"/>


The java method recsdetail:writeRecsXmlFile($recsTmpFile, $key) did the reading from database and rewritting the temporary file which is the $recsTmpFile. And then return the file name back which is the same as the $recsTmpFile.

But the problem is that, although the temporary file did get rewritten, the document function seems to see the same content every time.

So, my question is, how can I make the document function to see the temporary file as a new file each time instead of remembering it?

Thanks in advance.

Ming



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.