Image:Parse-lmnl.xsl

From LMNLWiki

Parse-lmnl.xsl (74KB, MIME type: application/xml)

Warning: This file may contain malicious code, by executing it your system may be compromised.

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

  1. namespace support
  2. entity support
  3. comments in tags
  4. 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.


The following pages link to this file: