Common RELAX NG Definitions for Paloose Sitemaps
Author: Hugh Field-Richards
Date: 2011-08-03T12:15

Common Rules and Definitions for Cocoon Sitemap

Parameter Elements

Some components have an associated parameter of the form:

    <parameter name="quality" type="float" value="0.9"/>
common.element.parameter — Warning! not used within this schema file.
define  :  common.element.parameter
element  :  map:parameter
attribute  :  name
Any text
optional
attribute  :  type
Any text
attribute  :  value
Any text
<define name="common.element.parameter">
   <element name="map:parameter">
      <attribute name="name">
         <text/>
      </attribute>
      <optional>
         <attribute name="type">
            <text/>
         </attribute>
      </optional>
      <attribute name="value">
         <text/>
      </attribute>
   </element>
</define>

Boolean Values

common.trueFalseEnum — Warning! not used within this schema file. (Combine: choice)
define  :  common.trueFalseEnum
choice
value = "1"
value = "0"
value = "yes"
value = "no"
value = "true"
value = "false"
<define name="common.trueFalseEnum" combine="choice">
   <choice>
      <value>
         1
      </value>
      <value>
         0
      </value>
      <value>
         yes
      </value>
      <value>
         no
      </value>
      <value>
         true
      </value>
      <value>
         false
      </value>
   </choice>
</define>

Paloose Datatype Definitions

Component Name

data.componentName — Warning! not used within this schema file.
define  :  data.componentName
data  :  string
param  :  pattern "[0-9a-zA-Z\.\-]+
<define name="data.componentName">
   <data type="string">
      <param name="pattern">
         [0-9a-zA-Z\.\-]+
      </param>
   </data>
</define>

Pipeline Labels

data.componentLabel — Warning! not used within this schema file.
define  :  data.componentLabel
data  :  string
param  :  pattern "[0-9a-zA-Z\-]+
<define name="data.componentLabel">
   <data type="string">
      <param name="pattern">
         [0-9a-zA-Z\-]+
      </param>
   </data>
</define>

Element Name

data.elementName — Warning! not used within this schema file.
define  :  data.elementName
data  :  string
param  :  pattern "([a-zA-Z\-]+:)?[a-zA-Z]+[a-zA-Z0-9\-]+
<define name="data.elementName">
   <data type="string">
      <param name="pattern">
         ([a-zA-Z\-]+:)?[a-zA-Z]+[a-zA-Z0-9\-]+
      </param>
   </data>
</define>

Source File

data.sourceFileName — Warning! not used within this schema file.
define  :  data.sourceFileName
data  :  string
param  :  pattern "((resource:/)|(context:/)|(cocoon:/)|\{|(/))(\S+/)*(\S+)
<define name="data.sourceFileName">
   <data type="string">
      <param name="pattern">
         ((resource:/)|(context:/)|(cocoon:/)|\{|(/))(\S+/)*(\S+)
      </param>
   </data>
</define>

Language Designator

This needs to be expanded.

data.language — Warning! not used within this schema file.
define  :  data.language
data  :  string
param  :  pattern "\S+
<define name="data.language">
   <data type="string">
      <param name="pattern">
         \S+
      </param>
   </data>
</define>

Documentation Elements

Accept any element in the "http://relaxng.org/ns/annotation/1.0", "http://purl.org/dc/elements/1.1/" and "http://www.w3.org/1999/xhtml" namespaces.

map.annotation — Warning! not used within this schema file.
define  :  map.annotation
element  :  documentation
interleave
element  :  title
Any text
element  :  date
Any text
element  :  creator
Any text
element  :  language
Any text
<define name="map.annotation">
   <element ns="http://relaxng.org/ns/annotation/1.0" name="documentation">
      <interleave>
         <element ns="http://purl.org/dc/elements/1.1/" name="title">
            <text/>
         </element>
         <element ns="http://purl.org/dc/elements/1.1/" name="date">
            <text/>
         </element>
         <element ns="http://purl.org/dc/elements/1.1/" name="creator">
            <text/>
         </element>
         <element ns="http://purl.org/dc/elements/1.1/" name="language">
            <text/>
         </element>
      </interleave>
   </element>
</define>
namespace.xhtml — Warning! not used within this schema file.
define  :  namespace.xhtml
zeroOrMore
element
nsName "http://www.w3.org/1999/xhtml
Any text
<define name="namespace.xhtml">
   <zeroOrMore>
      <element>
         <nsName ns="http://www.w3.org/1999/xhtml"/>
         <text/>
      </element>
   </zeroOrMore>
</define>