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

Re: Cannot write more than one result document to the

Subject: Re: Cannot write more than one result document to the same URI
From: Dan Vint <dvint@xxxxxxxxx>
Date: Thu, 04 Apr 2013 19:37:48 -0700
Re:  Cannot write more than one result document to the
At 06:52 PM 4/4/2013, you wrote:
It isn't a problem with the implementation, it is a formal aspect of the specification as cited above.

I figured it probably was, I guess I'm also asking why you would want to turn off the capability when it is safe? I know I've completed writing to that file, so why is there a problem - other than some where in developing the spec someone came up with a rule. I can live with the rule, just would like to understand the logic.



Could you simply check back to make sure you haven't already created the file?

   <xsl:if test="not(preceding::*[@conref=current()/@conref])">
     <xsl:result-document href=.......

So, for every unique conref attribute you'll get only a single invocation of <xsl:result-document>.


When I originally posted the question it was to answer the why and also get some help in trying to track down where the problem was. I thought my original situation was as I first posted in which I was writing 2 different file names. I hadn't found the one file in the 3000 that was really causing the problem which was my follow up post in which I had 2 references to the same section and was thus writing the same file twice for that one topic file. I also knew that There were several other files with exactly the same combination of references. I needed to make sure I had a single file for all those references as we will be maintaining these going forward.

Complicating the matter was that I was running within Kernow and it was handling the logic to walk through the directory structure and process the files. Its log output doesn't always align with the last file processed. So based upon files that were around my error in the list I was finding my initial situation and couldn't understand why it was complaining - I had two unique names.


I hope this helps.

It does, thanks everyone. I know the what now, even though I don't understand why the rule exists ;-)


..dan
---------------------------------------------------------------------------
Danny Vint

Panoramic Photography
http://www.dvint.com

voice: 619-938-3610

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.