Re: My Portal with XSLT
Michael Urman <[email protected]>
| Newsgroups | gmane.comp.web.galeon.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sat, Mar 01, 2003 at 03:53:40PM +0200, Tommi Komulainen wrote: > Please find attached a stylesheet I've got almost finished. The page > the stylesheet generates should be identical (within reason) to the new > My Portal in 1.3.2. See the attached XHTML file for yourself, it's > generated from the default-bookmarks.xbel (you should have galeon > installed in /usr/local or the CSS and icons can't be found and the page > will look rather dull) Have you noticed the handling of smart bookmarks with multiple %s entries? I'll admit it's not something i handled in my xml generation code either because it's not a case i've ever used...but it might be better to have. > xsltproc myportal.xsl bookmarks.xbel >myportal.html Very cool. Looks identical once i fixed the path references. > <?xml-stylesheet href="myportal.xsl" type="text/xsl"?> > > in the beginning of the bookmarks.xbel file, you can simply open the > bookmarks file itself in the browser and see My Portal. Well, almost, > smart bookmarks text entries seem to disappear somewhere, but anyway... More than that got screwed up for me. My stylesheet kills the <br> tags because they bothered me. Whatever internal magic gets used in this case doesn't do the nice indentation that xsltproc does, and even leaves out all newlines. As such, all my folders had one really wide line of bookmark after bookmark. If we can get some spaces or newlines between bookmarks so they can be wrapped, and fix whatever it is that breaks on the smartbookmarks, this so seems the way to go. > What do you think? Could this be used as new My Portal? I like it; it just needs the final finishing touches. [i'm not a developer; just a user] -m -- Michael Urman [- [email protected] -] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf