Michael Ludwig skrev:
Christoffer Dam Bruun schrieb:
I have a webapplication where I hold a large XML tree in memory. On
...
Could XSLTC (which I don't have any experience with yet) be used to make
the <xsl:key> persist? Hmm, maybe the <xsl:key> would persist - but that
probably would still require its execution on a document instance.
I don't think XSLTC would make any difference since the XSLT processor
cannot know that the
XML document has not been modified since the key was last calculated-
only I as the programmer knows that.
Could you use the ID feature built into XML to achieve what you want?
I have looked at it - the problem is that I also use an one-to-many
reverse-id lookup e.g.:
"All elements that refer to the element with this @id"
and I don't think I can cram that into the builtin ID feature.
Christoffer Bruun