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

Re: doc() concat expression and whitespace error

Subject: Re: doc() concat expression and whitespace error
From: Bruce D'Arcus <bdarcus@xxxxxxxxxxxxx>
Date: Tue, 16 Nov 2004 07:37:47 -0500
xml whitespace error
On Nov 15, 2004, at 10:38 PM, Michael Kay wrote:

BTW, to be able to [expletive deleted] in XML data via the doc() function
like this -- where I send a query to a database and get a result back for
transformation -- is really useful.

Yes. I'm engaged in another project where we are doing exactly the same thing with Tamino.

What has been your experience with performance?


I've noticed my stylesheets are now a little slow compared to my earlier approach of just accessing the docs directly from the file system, but I don't know if this is because of the http access, or because there's more work involved (here eXist searches for the docs, while earlier I just directly accessed the correct docs because the file names were the same as the citekey).

My bigger issue is that I regenerate the bib collection in the temporary tree every time I run the stylesheets. I'm thinking now it might be better to spit out that collection of documents as an external file (called something like "doc-biblio.xml"), so that I can reuse it in subsequent runs.

But then this leaves the question how to know when the bib file needs to be regenerated (e.g. when a distinct-value of the "citekey" key is added or deleted), and when it can just be used as is.

The only way I can see to do this is to have a top-level "generate-bibfile" parameter with the default set to "yes". That way an application (say OpenOffice) can be charge of knowing whether the bibfile needs to be regenerated or not.

Does that sound right? Any other suggestions?

Bruce

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.