Re: [Haskell-cafe] Predicates in HaXml

2004-11-21 Thread Tom Spencer
This is probably the simplest way of doing your specific task, but there are of course other ways. The tool Xtract has a parser for XPath-like expressions, including more complex predicates, which get translated directly to combinator-style accessors. Unfortunately, the set of combinators

[Haskell-cafe] Predicates in HaXml

2004-11-10 Thread Tom Spencer
Hi there, In XSLT there is an XPath function that will let you select a particular node in the current context, for example; xsl:value-of select=team[1] / in Michael Kay's article http://www-106.ibm.com/developerworks/xml/library/x-xslt/?article=xr This selects the first team element in the

Re: [Haskell-cafe] Predicates in HaXml

2004-11-10 Thread Malcolm Wallace
Tom Spencer [EMAIL PROTECTED] writes: In XSLT there is an XPath function that will let you select a particular node in the current context, for example; xsl:value-of select=team[1] / This selects the first team element in the current context. Is there a work around to get similar