Image:Parse-lmnl.xsl
From LMNLWiki
Parse-lmnl.xsl
(74KB, MIME type: application/xml)
The parse-lmnl.xsl XSLT 2.0 stylesheet parses a LMNL document into event elements that can be used by other processes, such as a Creole validator.
Using It
The easiest way to use it is to simply run it on an XML document that contains a LMNL document. (XML elements within the document will be ignored.)
Or you can use parse-lmnl.xsl within your own stylesheets by importing it and either applying templates to a node in ev:parse-lmnl mode, or calling the ev:parse-lmnl template with a $lmnl parameter set to the string containing the LMNL. For example
<xsl:call-template name="ev:parse-lmnl">
<xsl:with-param name="lmnl" as="xs:string">[foo}...{foo]</xsl:with-param>
</xsl:call-template>
The ev prefix should be associated with the http://lmnl.net/ns/event namespace.
To Do
- namespace support
- entity support
- comments in tags
- LMNL declaration
File history
Legend: (cur) = this is the current file, (del) = delete
this old version, (rev) = revert to this old version.
Click on date to see the file uploaded on that date.
- (del) (cur) 20:39, 11 December 2006 . . Jeni (75600 bytes) (Changed events namespace)
- (del) (rev) 11:00, 18 September 2006 . . Jeni (75602 bytes) (corrected bug in parsing of atoms)
- (del) (rev) 10:44, 15 September 2006 . . Jeni (75619 bytes) (uses new syntactic events)
- (del) (rev) 11:22, 13 September 2006 . . Jeni (67391 bytes) (implemented 'entity' (but not 'entities') and 'ns' declarations; changed event names)
- (del) (rev) 13:04, 11 September 2006 . . Jeni (53853 bytes) (added support for built-in entities)
- (del) (rev) 13:22, 9 September 2006 . . Jeni (53167 bytes) (added support for character references)
- (del) (rev) 13:05, 8 September 2006 . . Jeni (48202 bytes) (Fixed bug in recognising abbreviated annotation end tags)
- (del) (rev) 21:08, 6 September 2006 . . Jeni (46836 bytes) (An XSLT 2.0 stylesheet that generates events from a LMNL document.)
- Edit this file using an external applicationSee the setup instructions for more information.
Links
The following pages link to this file:
