iCalendar to XML transform

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 UTC