W3C home > Mailing lists > Public > www-rdf-calendar@w3.org > November 2006

iCalendar to XML transform

From: Tim Hare <TimHare@comcast.net>
Date: Sun, 12 Nov 2006 21:11:08 -0500
To: <www-rdf-calendar@w3.org>, <ietf-caldav@osafoundation.org>
Message-ID: <E1GjRI3-0004nE-8G@aji.w3.org>

I've worked out an XSL transform which I believe will convert any iCalendar
file to an XML document that has a node for each component and property in
the input file, with attributes on component elements which are the
parameters on the properites input.

One issue, remains, however: the only way I could find to bring in the
iCalendar file was as a defined SYSTEM entity in the XSL stylesheet itself.
It's not, as near as I can tell in testing, possible to use it as the
original document, or to use the document() function because that causes
whitespace to be stripped, including the CR-LF sequence needed to determine
the end of an iCalendar property line.

If anyone has insight into how to process a text file as input in this kind
of process, please let me know. I am willing to share the stylesheet if you
like. I'm sure there are issues possibly remaining regarding quoted or
escaped characters and the like.


Tim Hare
Interested Bystander, Non-Inc.
Received on Monday, 13 November 2006 02:11:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 13 November 2006 02:11:33 GMT