The Artima Developer Community
Sponsored Link

Java Buzz Forum
LML: List Markup Language

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Bill de hÓra

Posts: 1137
Nickname: dehora
Registered: May, 2003

Bill de hÓra is a technical architect with Propylon
LML: List Markup Language Posted: Jan 7, 2005 9:48 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Bill de hÓra.
Original Post: LML: List Markup Language
Feed Title: Bill de hÓra
Feed URL: http://www.dehora.net/journal/atom.xml
Feed Description: FD85 1117 1888 1681 7689 B5DF E696 885C 20D8 21F8
Latest Java Buzz Posts
Latest Java Buzz Posts by Bill de hÓra
Latest Posts From Bill de hÓra

Advertisement
Introduction LML is a markup language for lists*. There are many lists on the Web and in web content, but most of them are published using HTML elements which don't carry much interesting information about the list. LML can enable sharing of these lists along with useful metadata. LML documents can contain lists of most anything. They can be ordered lists, such as a top ten lists of books, the world's twenty most populous countries, or unordered such as a wishlist, a playlist, or a shopping basket. The markup is straightforward. Here's an example skeleton: <i:lml xmlns:i='http://www.dehora.net/lml/2005/01' i:version='001' > <i:published i:when='' /> <i:changed i:when='' /> <i:author> <i:name></i:name> </i:author> <i:category> <i:name></i:name> <i:subject></i:subject> </i:category> <i:list i:ordered='' i:href=''> <i:item i:href=''></i:item> <i:item i:href=''></i:item> <i:item i:href=''></i:item> </i:list> </i:lml> Let's go through it. General notes None of the elements are optional. None of the child elements of the root element are ordered. Attributes are in namespace. You're free to insert foreign markup into an LML document. You're free to ignore foreign markup in an LML document. i:lml The i:lml element in the http://www.dehora.net/lml/2005/01 namespace, <i:lml xmlns:i='http://www.dehora.net/lml/2005/01' i:version='001' > says this is an LML document. The i:version attribute contains a textual identifier - it's not optional. The version we're talking about here is '001'. i:category, i:name, i:subject <i:category> <i:name></i:name> <i:subject></i:subject> </i:category> This lets you associate the list with category metadata. You can have as many i:category elements as you want. The i:name element is the name of the category. The i:subject indicates a URL that qualifies or contextualizes the category - it can be empty. Preserving the XML document order for these items is sufficient. i:published The i:published element, <i:published i:when='' /> indicates the date the list was published - it's an empty element. The i:when attribute contains the date conforming to the date-time BNF rule in RFC3339. i:changed The i:changed element, <i:changed i:when='' /> indicates a date the LML document was changed - it's an empty element. The i:when attribute contains the date conforming to the date-time BNF rule in RFC3339. The first time a list is published i:changed and i:published will be the same date. i:author, i:name The i:author construct, <i:author> <i:name></i:name> </i:author> is lifted from Atom's. i:list <i:list i:ordered='' i:href=''> The i:list element tells us the list of items has started. The i:ordered attribute can have the values 'yes' or 'no' - it's not optional. The i:href attribute indicates a link where the list can be found or read on the Web - it's not optional. The semantics of ordering is undefined - specifying it would be a) interminably dull, b) of minimal benefit. i:item An i:list contains one or more i:item elements: <i:list i:ordered='yes' i:href=''> <i:item i:href=''></i:item> <i:item i:href=''></i:item> <i:item i:href=''></i:item> </i:list> the i:href attribute indicates the resource name of the item - it's optional. What you put in the content of an i:item is up to you. If you put some LML in an item, i:category elements in your outer LML document do not apply to the embedded LML. Media type The intended media type for LML is application/xml+lml. Who knows how long it will take to get that registered, but try winging it for now and see how things work out. If you don't like using unregistered media types, application/xml is fine. Future work It would interesting to define an RDF serialization of LML and accompanying XSLT sheets which specify the mappings. hack support for LML into RSS aggregators and blog publishing tools. scrape exisiting web sites for their lists and republish as LML. A RelaxNG schema and an LML to XHTML transform should be forthcoming in a future edition. * Credit is due to Clyde Hatter for coming up with the idea of a markup for lists....

Read: LML: List Markup Language

Topic: [Dec 30, 2004 08:26 PST] 3 Links Previous Topic   Next Topic Topic: JPackage on Fedora Core 3

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use