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

writing new values to an extra document

Subject: writing new values to an extra document
From: "Szabo, Patrick (LNG-VIE)" <patrick.szabo@xxxxxxxxxxxxx>
Date: Fri, 7 Nov 2008 10:38:18 +0100
 writing new values to an extra document

I have a quite tricky one for you.

I4m transforming files that have an element called 'gerichte'. Every week i
get new files, and there is the possibility that there are new values for
'gerichte' that i didn4t know before. if that is the case i want to write the
new and only the new ones into an extra file.

Little more explanation:

Let4s say i know the following values for 'gerichte': BSG, USG, OGH. Those are
the ones that i did consider in my stylesheets.
Now i get a delivery with new gerichte lets say: USK, VFGH, IAK. What i want
now is that those are added to the extra file that already exists, and
contains all known values for gerichte.


The problem now is that I have no clue how to switch between the two different
result trees...
I tried it with <xsl:result-document> but Saxon is giving me the error

Error at xsl:result-document on line 183 of transform.xsl:
  XTDE1490: Cannot write more than one result document to the same URI:

Because I'm always writing to the same destination URI.

Idea someone ?!

Here4s what i have right now:

<xsl:variable name="gerichtsDokument" select="document('../gerichte.xml')"/>
<xsl:variable name="gerichtsWert" select="gericht"/>

     <xsl:result-document href="../gerichte.xml">
                    <xsl:attribute name="date"
select="format-date(current-date(), [D]-[M]-[Y]')"/>
                    <xsl:value-of select="gericht"/>


Patrick Szabo
EPD / XSLT Konvertierung
Tel.: +43-1-534 52-1573
Fax.: +43-1-534 52-1573

LexisNexis Verlag ARD Orac GmbH & Co KG
Marxergasse 25, 1030 Wien
FN 8333f, Handelsgericht Wien
www.lexisnexis.at <http://www.lexisnexis.at/>

Current Thread


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.
First Name
Last Name
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.