Subject: Re: [xsl] Sorting using more than value From: Susan Bodnik <aquasue@xxxxxxxxx> Date: Mon, 15 Nov 2010 08:53:44 -0800 (PST) |
Wendell, thanks for the tip - much appreciated! Susan At 05:38 PM 11/11/2010, Gerrit wrote: > On 11.11.2010 23:24, Susan Bodnik wrote: > > Try "(@term.entry,text())[1]" as Wendell suggested, which is just a shorthand >for > if (@term.entry) then @term.entry else text() This is true with one tiny caveat: if indexterm ever has mixed content, particularly more than one text node. I don't think you want any indexterms with more than a single text node to appear as many times as they have text nodes, each time with that fragment of text. (This can sometimes happen if comments or processing instructions, not only inline elements, happen to intervene.) <indexterm>Global <!-- was "World" -->Health</indexterm> There are two text nodes there, with the values "Global " and "Health". That's another reason why group-by="(@term.entry,.)[1]" is probably better. Cheers, Wendell
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Sorting using more than v, Wendell Piez | Thread | [xsl] Re: Unable to View the XSL Ou, Rashi Bhardwaj |
RE: [xsl] XSL comparing nodesets by, Ludwig, Michael | Date | RE: [xsl] Accessing the XML file na, Neil Owens |
Month |