[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Browseable bookmarks.xml
From:       "Greg Martyn" <greg.martyn () gmail ! com>
Date:       2007-11-15 7:40:35
Message-ID: 6e0c99d0711142340x51884ccfu2749c38446329da9 () mail ! gmail ! com
[Download RAW message or body]

Hi all,
I've created an xsl transform for konqueror's bookmarks.xml that lets
it the user open it as if it were an html page. (Much like how firefox
stores its bookmarks in a html file)

Is anyone interested in this?

What is the best way to get it incorporated into KDE?

I've attached it. Save it in the same folder as your bookmarks.xml.
Next, insert this as the second line in the bookmarks.xml file:
<?xml-stylesheet type="text/xsl" href="bookmarks.xsl"?>

.. then open bookmarks.xml in firefox (the xsl transform doesn't work
in konq yet..)

Thanks,
Greg Martyn

["bookmarks.xsl" (text/xml)]

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>

<xsl:template match="/xbel">
  <html>
  <body>
    <h1>KDE Bookmarks</h1>
    <xsl:apply-templates select="folder"/>
  </body>
  </html>
</xsl:template>

<xsl:template match="folder">
  <h2><xsl:value-of select="title"/></h2>

  <div style="padding-left: 15px;">
    <xsl:apply-templates select="folder"/>

    <xsl:for-each select="bookmark">
      <p><a href="{@href}"><xsl:value-of select="title"/></a></p>
    </xsl:for-each>
  </div>
</xsl:template>
</xsl:stylesheet>

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic