xsl-list
[Top] [All Lists]

Re: [xsl] browser status on id/xml:id (idxml)

2010-08-25 16:00:07

why not simply use key(,'id',foo) instead if id(foo) using <xsl:key
name="id" match="*[(_at_)id]" use="@id"/>  which doesn't require any ID
properties of the node?

I already got duplicate elimination to work with key, see dupelim.xsl here:
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00245.html

But
- I had no explanation on where the ghost nodes came from
- because of those ghost nodes an intersection had to be computed
- I had to to the duplicate elimination "by hand".

In
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00246.html

Michael came up with the idea of having a space separated string and in
http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/201008/msg00258.html

I started investigation of how to use id() function for that.

id() function has two big advantage over Michael's proposed string
processing:
- it does duplicate elimination "automatically" given a list of (not
necessarily distict) strings
- it is part of the XSLT processor and should be more efficient than a XSLT
solution


Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler, L3
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294



From:       David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>
To:         xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc:         Hermann Stamm-Wilbrandt/Germany/IBM(_at_)IBMDE
Date:       08/25/2010 10:39 PM
Subject:    Re: [xsl] browser status on id/xml:id (idxml)



On 25/08/2010 20:58, Hermann Stamm-Wilbrandt wrote:

Hello,

after being directed to use xml:id with the id() function in another
thread
I got another pointer from David Carlisle to using "id" in browsers.

Adding xhtml namespace to an element allows to use its id attribute as
id (browsers "know" that's an id).

Now I did some experiments which browsers support what.

why not simply use key(,'id',foo) instead if id(foo) using <xsl:key
name="id" match="*[(_at_)id]" use="@id"/>  which doesn't require any ID
properties of the node?

David





--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>