Subject: Re: [xsl] Combining two XBEL XML files From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx> Date: Sun, 13 Jul 2008 06:29:56 -0700 |
One may emulate <xsl:for-each-group select="$folders" group-by="title"> <xsl:sort select="current-grouping-key()"/> ... </xsl:for-each-group> with <xsl:for-each select="$folders/title"> <xsl:sort select="."/> <xsl:for-each select="$folders[title = current()]"> ... </xsl:for-each> </xsl:for-each> -- Vladimir Nesterovsky ----- Original Message ----- From: "Martin Honnen" <Martin.Honnen@xxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Sunday, July 13, 2008 15:32 Subject: Re: [xsl] Combining two XBEL XML files > Aaron Gray wrote: > >> Whats the differences that stop it running on 1.0 ? > > Doing it with XSLT 1.0 is more difficult, with XSLT 2.0 and > xsl:for-each-group you can easily group folder and bookmark elements > from different documents while Muenchian grouping in XSLT 1.0 is key > based and keys are built for each document only. So with XSLT 1.0 you > might want to do two transformations, the first one merging the two > documents into one, the second one doing grouping to get rid of > duplicates and sorting. > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Combining two XBEL XML fi, Aaron Gray | Thread | [xsl] value-of select with two diff, Pierre MacKay |
Re: [xsl] Simple XML Diff, Mark Anderson | Date | [xsl] value-of select with two diff, Pierre MacKay |
Month |