Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: merging two XML files

From: "Stefan Franke" <stefan.franke@---.--.-->
To: NULL
Date: 1/4/2005 8:43:00 PM
> <xsl:when test="($doc1/BESTSELLER/EINTRAG/TITEL) = TITEL">
> and it will probably work.

Thanks very much, that was it. However I ran into another problem when 
merging those two files. When I'm iterating through the elements with a 
for-each statement I always get the current element from the XML file in the 
for-each statement. When I'm trying to access information that's from the 
other XML file, it fails.

      <xsl:for-each select="$doc1/BESTSELLER/EINTRAG">
       <xsl:if test="($doc2/BUCHBESTAND/BUCH/TITEL) = TITEL">
       <b><xsl:value-of select="TITEL"/></b><br />
       <xsl:value-of 
select="$doc2/BUCHBESTAND/BUCH/AUTOR[($doc2/BUCHBESTAND/BUCH/TITEL) = 
TITEL]"/><br />
      </xsl:if>
      </xsl:for-each>

I'm trying to work around this problem with an XPath statement 
("$doc2/BUCHBESTAND/BUCH/AUTOR[($doc2/BUCHBESTAND/BUCH/TITEL) = TITEL]"), 
but so far there has been no success.

Does anyone have any ideas on that problem?

Thanks,
Stefan 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent