Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Question for XSLT gurus - Test in foreach

From: dirk@---------.--
To: NULL
Date: 5/5/2005 8:12:00 AM
Hi David,

Thanks for your response. The solution using xsl:key seems to be the
most elegant, however the xml data I am working with comes from two
external xml files, one containing

<Packages>
    <Package>
      <PkgBenefitCode>1</PkgBenefitCode>
      <PkgBenefitCode>2</PkgBenefitCode>
      <PkgBenefitCode>3</PkgBenefitCode>
    </Package>
  ...
</Packages>

and the other containing

<Benefits>
    <Benefit code="1">
      <Content>The content 1</Content>
    </Benefit>
    <Benefit code="2">
      <Link>http://www.example.com</Link>
    </Benefit>
    <Benefit code="3">
      <Content>The content 3</Content>
    </Benefit>
    ...
</Benefits>

It is not possible to reference an external document with a key, except
when the context is changed (See http://www.w3.org/TR/xslt#key). I
could change the context to the document containing the key but this
wouldn't solve my problem of needing to reference the other document.

I will try one of the other solutions but I wonder if there is any way
of using a key or similar across documents in this fashion?

Thanks again for your help.
Dirk



transparent
Print
Mail
Like It
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