<wmmeta name="Title" value="The &lt;metaset&gt; and &lt;usemetaset&gt; Tags" />
<wmmeta name="Section" value="05-meta" />
<wmmeta name="Score" value="50" />
<wmmeta name="Abstract">
Define your own metadata names
</wmmeta>

By default, WebMake includes some named metadata you can use, such as
**Title**, **Author**, and **Score**.  Each of these can have a type (numeric
or string), and a default value.

You can also use your own, arbitrary names for metadata, but they won't
get a type or a default value.

The &lt;metaset&gt; tag allows you to define a set of metadata, assign an id
to that set, and set default values and types for them.

You then surround the parts of your WebMake file which uses these sets
in a &lt;usemetaset&gt; block.

Metaset Tag
~~~~~~~~~~~

The metaset tag is used as a block, with an ##id## attribute.  Inside
the block, define the metadata, one per line, in this format:

	##Name##: type=##type## default="##defaultvalue##"

Type can be either ##string## or ##numeric##.  The name can contain
only alphanumeric characters, ##_## and ##.##.

For example:

<safe>
  <metaset id="dc">
    DC.Title: type=string default="(Untitled)"
  </metaset>
</safe>

Usemetaset Tag
~~~~~~~~~~~~~~

This is a scoped tag.  Any other WebMake tags inside the
*&lt;usemetaset&gt; ... &lt;/usemetaset&gt;** block will used that
metaset for their metadata.

It requires an ##id## tag which refers to the &lt;metaset&gt;
block in question.

Example
=======

<safe>
  <metaset id="dc">
    DC.Title: type=string default="(Untitled)"
  </metaset>

  <usemetaset id="dc">
    <metadefault name="DC.Title" value="Chunk">
      <content name="chunk_1.txt">...</content>
    </metadefault>

    <{perl
      # ... perl code which uses the metadata ...
    }>

    <out name="foo" file="foo.html">
      ${chunk_1.txt}
    </out>
  </usemetaset>
</safe>

