xsl.modes

1 Overview

This is a minimal set of modes for XSL.

2 The code

!declare-prefix @prefix[xsl] @uri[http://gloss.bham.ac.uk/mv/xml/xsl] {
!declare-prefix @prefix[xml] @uri[http://gloss.bham.ac.uk/mv/xml/xml] {

!set-parameter @name[\{http://gloss.bham.ac.uk/mv/xmlnamespaces\}xsl] @value['http://www.w3.org/1999/XSL/Transform']
!set-parameter @name[xml:decl] @value[include]
!set-parameter @name[xml:version] @value[1.0]
!set-parameter @name[xml:encoding] @value[UTF-8]
!set-parameter @name[xml:bom] @value[omit]
!set-parameter @name[xml:pelt-default-prefix] @value[xsl]

!mode @name[xsl:pelement] @template[xml:pelement] @type[execute]
  !hook @mode[xml:pelement] @action[execute]
  !pelt @fullname[xinclude]
    !element @name[xi$:include]
      !attribute @name[xmlns$:xi] [http$://www.w3.org/2001/XInclude]
      !process-tokens @mode[$\{xml:inner-structured-content\}]
    !text 

  !pelt @fullname[$template||output]
    !execute @mode[xml:pelement] @hook[execute]
    !text 

  !include @mode[xml:pelement] @hook[execute]

}; !declare-prefix
}; !declare-prefix

This file is part of the GLOSS system, Copyright Richard Kaye http://gloss.bham.ac.uk/. Usage permitted under the GPL. No Warranty.

This page is copyright. Web page design and creation by GLOSS.