The Goal | What happens and how to make it happen | How it works | To Do | What I learned
This is going to have a schema describing the XML/XSLT calendar system that I am building. But at the moment it is a placeholder for the Namespace - http://www.w3.org/2000/09/calendar/alpha1 - please use that exact string if you are going to link to it (can't imagine why you would at the moment - the thing is an alpha that doesn't work yet), since the HTML version may disappear by and by or morph into some other form.
Produce a calendar system implemented in XML, using XSLT to generate various views of the calendar. The idea is that this will allow multiple content-types to be generated (I was initially looking for XHTML and iCal to be generated from one source), and that it is relatively easy to add data. It's really just a database application - it could be done in SQL/PHP (which is how I was initially going to do what I wanted) but this seems like a neat implementation demo like this. It struck me that we could also use the source to provide different calendars.
The source xml data is transformed using an XSLT stylesheet (at the moment there is only one, for generating XHTML). The form below lets you select a stylesheet and a source file.
(This is borrowed from some Semantic Web stuff of Dan Connolly's)
The XML source document uses a schema that I am in the process of making up. There is an XSLT transform to produce XHTML (for the WAI Conferences page - the original motivator for this work). They are linked, so anyone with an XSLT browser should get the calendar list. There is also an online version of the service that can be used (but it produces an xml file, so if you can't deal with those you need to save it and pretned it is HTML..
At the moment there is a calendar
element, with any number of
event
elements as children.
each event
can have the following attibutes (the xlink
namespace prefix refers to http://www.w3.org/1999/xlink throughout)
date
xlink:href
An event
can have the following children:
name
type
event
element.country
location
topic
org
, contact
and desc
xlink:href
attribute giving a URI for each of these.rsvpdate
language
xml:lang
attribute for
the language required. (Is this a legitimate use of xml:lang ?)acl
There is no sepcified way to get an XML document linked to several XSLT sheets that produce different content-types (for example HTML, iCal, RDF, SVG all seem good targets for a calendar) and select according to the type that I want. I don' think it can be done to select for languages either, although I might be wrong there and it might be a trickier problem. I should read the CC/PP stuff - maybe that is the answer I need to be looking at, but ther are implications for xml-stylesheet and for use cases of Xlink.
The value of this would be that authors could use a tool to create some XML data format, and another tool to create some XSLT sheets, and then just put them on the web and not have to worry about talking to their sysadmin about how to make content-negotiation work on their particular server.
I learned some XSLT. And something about XML Schema.
$Date: 2000/09/29 09:50:19 $ Charles McCN With help from Dan Connolly, Max Froumentin, Karl Dubost