Subject: RE: [xsl] Restricting the scope of preceding:: and following:: From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 4 Jan 2006 10:52:05 -0000 |
... count(ancestor::s[1]|$sentence)=1 > I've always > preferred the variant: generate-id(ancestor::s[1]) = > generate-id($sentence). That should give better > results.. Jeni Tennison once did some performance tests and found that some processors gave better results for count(a|b)=1, others for generate-id(a)=generate-id(b). IIRC, she found that generate-id() was much slower on Saxon, but faster on other processors. It may have changed in the meantime, of course. In XSLT 2.0 you can say what you mean, and write "a is b". Michael Kay http://www.saxonica.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Restricting the scope of , Geert Josten | Thread | Re: [xsl] Restricting the scope of , Peter Flynn |
Re: [xsl] Restricting the scope of , Geert Josten | Date | Re: [xsl] Restricting the scope of , Geert Josten |
Month |