XML Skeleton Loader

XML Skeleton files are very similar to MillScript XML templates, except they use named, rather than numbered, parameters. They are also written in XML augmented with some custom tags.

There are only three differences between an XML skeleton and an XHTML skeleton:

  1. XML skeleton files are stored in the inventory, using a file extension of .xml.sk. e.g.
    myXmlSkeleton.xml.sk
              
  2. All the special tags are contained in their own namespace, "http://www.millscript.org/namespace/skeleton". e.g.
    <field name="body" xmlns="http://www.millscript.org/namespace/skeleton" />
              
  3. Aside from elements in the "http://www.millscript.org/namespace/skeleton" namespace, there are no restrictions on the XML elements you can use. All elements in the "http://www.millscript.org/namespace/skeleton" namespace are reserved for use by MillScript.

File Format

A very simple example would be:
<xml xmlns:sk="http://www.millscript.org/namespace/skeleton">
  <hotels>
    <hotel>
      <name><sk:field name="name">The parameter with name "name" is the hotel name</sk:field></name>
    </hotel>
  </hotels>
</xml>
        
For more examples see the XHTML skeleton documentation.

Use

For usage notes, see the XHTML skeleton documentation.

Notes