xsl-list
[Top] [All Lists]

Re: [xsl] Sorting under for-each-group

2006-08-08 07:05:21

I think you just want to add two xsl:sort:

...
            <xsl:for-each select="current-group()">
<xsl:sort select="Author"/>
<xsl:sort select="title"/>
...

 saxon8 sort2.xml sort2.xsl \!indent=yes \!encoding=us-ascii
<?xml version="1.0" encoding="us-ascii"?>
<List>
   <Entry>
      <Subject>Catalogs. Austria</Subject>
      <Item>
         <Author>Kol&#225;r, Hugo</Author>
         <Book>
            <Title>Katalog zn&#225;mok Rak&#250;sko 1850-1918</Title>
            <Edition>Second</Edition>
         </Book>
      </Item>
      <Item>
         <Author>Sieger, Hermann Walter</Author>
         <Book>
              <Title>Zeppelinpost spezialkatalog</Title>
          </Book>
      </Item>
   </Entry>
</List>

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>