|
Subject: Re: [xsl] Combining two XBEL XML files From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sat, 12 Jul 2008 19:10:02 +0200 |
Its just working with two documents at the same time, sorting them, recursing down folders in syncronism and getting back up is quite a complex task. looking for some guidance.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:my="http://example.com/2008/my" exclude-result-prefixes="my" version="2.0">
<xsl:param name="sec-file" select="'bookmark2.xml'"/> <xsl:variable name="sec-doc" select="doc($sec-file)"/>
<xsl:function name="my:bookmark-merge" as="element()*">
<xsl:param name="bookmarks" as="element()*"/>
<xsl:for-each-group select="$bookmarks" group-by="@href">
<xsl:sort select="current-group()[1]/title"/>
<xsl:sequence select="current-group()[1]"/>
</xsl:for-each-group>
</xsl:function>Martin Honnen http://JavaScript.FAQTs.com/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Combining two XBEL XML fi, Aaron Gray | Thread | Re: [xsl] Combining two XBEL XML fi, Aaron Gray |
| Re: [xsl] Combining two XBEL XML fi, Aaron Gray | Date | Re: [xsl] Combining two XBEL XML fi, Aaron Gray |
| Month |