[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Re: saxon:evaluate

Subject: [list4xt] Re: saxon:evaluate

User: Website

From: Paul Tchistopolskii (pault12@pacbell.net)
Date: 26/08/2000 - 04:00


I found one more evaluatable beast in current XSLT.

It is ' evaluatable 'key'' ' .

From http://www.mulberrytech.com/xsl/xsl-list/archive/msg13964.html

<xsl:key name="elements" match="*" use="concat(name(), '::', .)" />

<xsl:template match="doc">
  <xsl:for-each select="*[generate-id(.) =
      generate-id(key('elements', concat(name(), '::', .))[1])]">
    <xsl:copy-of select="." />
  </xsl:for-each>
</xsl:template>

Why constructing key regular expression on the fly and constructing
document() regular expression on the fly is not evil, but constructing
xpath on the fly is evil ?

I think that the snippet above is ugly and maybe the snippets with
xt:evaluate will be ugly as well, but I also see a discrimitation of xt:evaluate ;-)

Rgds.Paul.

--
Mailing list for the XT users community.     (http://chadwickfcu.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org