diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2006-12-18 03:37:31 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2006-12-18 03:37:31 +0800 |
commit | 8ec58524a6bb7e1ad4c9062af4903b0e033da6b0 (patch) | |
tree | f58a8a46612bd4a14f171e1d1ffdbfb2a4ae8756 /data | |
parent | 2102c67776ad0abad2ebba2746ea997599ea0478 (diff) | |
download | gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar.gz gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar.bz2 gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar.lz gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar.xz gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.tar.zst gsoc2013-epiphany-8ec58524a6bb7e1ad4c9062af4903b0e033da6b0.zip |
Fix bookmarks export to HTML. Bug #345925, patch by Stefan Stuhr.
2006-12-17 Christian Persch <chpe@cvs.gnome.org>
* data/epiphany-bookmarks-html.xsl:
Fix bookmarks export to HTML. Bug #345925, patch by Stefan Stuhr.
Diffstat (limited to 'data')
-rw-r--r-- | data/epiphany-bookmarks-html.xsl | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/data/epiphany-bookmarks-html.xsl b/data/epiphany-bookmarks-html.xsl index 2bd752de7..1b9014501 100644 --- a/data/epiphany-bookmarks-html.xsl +++ b/data/epiphany-bookmarks-html.xsl @@ -42,23 +42,19 @@ $Id$ <dl> <!-- Items with Topics assigned will be processed first --> - <xsl:for-each select="purl:item[count(. | key('topics', dc:subject)[1]) = 1]"> - <xsl:sort select="dc:subject" /> + <xsl:for-each select="purl:item/dc:subject[count(.. | key('topics', .)[1]) = 1]"> + <xsl:sort select="." /> - <!-- Test if a topic is assigned --> - <xsl:if test="dc:subject"> - - <dt><h3><xsl:value-of select="dc:subject" /></h3><dl> - <xsl:for-each select="key('topics', dc:subject)"> - <xsl:sort select="purl:title" /> - <dt><a href="{./purl:link}"><xsl:value-of select="./purl:title" /></a></dt> - </xsl:for-each> + <dt><h3><xsl:value-of select="." /></h3><dl> + <xsl:for-each select="key('topics', .)"> + <xsl:sort select="purl:title" /> + <dt><a href="{./purl:link}"><xsl:value-of select="./purl:title" /></a></dt> + </xsl:for-each> - <!-- Force a linebreak; otherwise thinks will break for Topics with only 1 item --> - <xsl:text> - </xsl:text> - </dl></dt> - </xsl:if> + <!-- Force a linebreak; otherwise thinks will break for Topics with only 1 item --> + <xsl:text> + </xsl:text> + </dl></dt> </xsl:for-each> <!-- Now Bookmarks without topics will be added at the bottom of the output file --> |