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

Günther Schmidt gue.schmidt at web.de
Thu Feb 25 09:37:59 EST 2010


Dear Alistair,

after working intensely with XSLT again (with a break for several 
years), I wholeheartedly concur.

You guys are right though, through the document function it would be 
possible.

So any particular tool-set you could recommend?

Günther


Am 25.02.10 15:01, schrieb Bayley, Alistair:
>> 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.
>
> Alistair
> *****************************************************************
> 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