Kirk Evans Blog

.NET From a Markup Perspective

From OPML to editing XML in a browser


From OPML to editing XML in a browser

  • Comments 2

Stumbling into a Gem

A couple days ago, I was looking at the source for RSSBandit and saw a .opml file in the feeds directory. I hadn't worked with OPML before (I admit, I haven't done much with RSS either other than transform it), so I opened it to see what it was... just another XML file. But why the .opml extension? I had to go Googling to find out what OPML is.  Then I stumbled across Joshua Allen's examples of using OPML to edit XML content visually in a browser.

Today, I was looking for a stylesheet that would transform XSLT into HTML so the stylesheet would be color coded and viewed in a browser, kind of like IE's default stylesheet.  I looked at the source for Don's blog XML sample, and saw that his format seems cleaner than the markup generated by IE's default stylesheet.  I dare say he didn't code all of the escaped markup by hand, so where was it generated from?  I am betting Office 2003's beta, but I haven't installed it yet. 

I know that i have seen others write this stylesheet in a variety of ways before, and I really don't want to spend the time on altering defaultss.xsl to fit my needs. 

  • My guess is that he simply copied and pasted. Try copying anything from VS.NET and pasting it into something like Word.
  • I realize he copy-pasted, but from where? Word 2000 present a more convoluted XML rendition, and does not escape the "<" and ">" elements. The rendered equivalent becomes markup instead of content. I posted another version of defaultss.xslt on my web site at that achieves most of the functionality I need.
Page 1 of 1 (2 items)
Leave a Comment
  • Please add 2 and 5 and type the answer here:
  • Post
Translate This Page