[Haskell-cafe] Haskell and XML, need some tips from practioners

Bayley, Alistair Alistair.Bayley at invesco.com
Thu Feb 25 09:01:03 EST 2010

> From: haskell-cafe-bounces at haskell.org 
> [mailto:haskell-cafe-bounces at haskell.org] On Behalf Of Günther Schmidt
> Anyway through a very, very tedious process of xslt-transformations I 
> finally have the XML document I need.
> But now I need to amend the attributes of some elements with 
> looked up 
> values from the outside, the lookup-key is a particular 
> attribute value 
> of the nodes. This I cannot do through xslt processing as the 
> information needed is not within the xml document.

Not the answer you were looking for, but...

Is the lookup table in another XML document? If so then you might well be able to use the document() function, if your xslt processor supports it e.g.

  <xsl:value-of select="document($lookup-file)/ROWSET/ROW/FUND/FUND_ROW[FND_ID=$fnd-id]/ISIN_CODE"/>

That said, if you can, use Haskell to do all the transformations i.e. avoid xslt altogether. I despise xslt.

Confidentiality Note: The information contained in this message,
and any attachments, may contain confidential and/or privileged
material. It is intended solely for the person(s) or entity to
which it is addressed. Any review, retransmission, dissemination,
or taking of any action in reliance upon this information by
persons or entities other than the intended recipient(s) is
prohibited. If you received this in error, please contact the
sender and delete the material from any computer.

More information about the Haskell-Cafe mailing list