Print

Print


> Actually, I think we all agree that mixing #PCDATA _between_
> elements, ala HTML, would _not_ be a good content model.  I
> can for see communities that do not want to specify "type" nor
> "description".  They just want something plain and simple like
> Dublin Core.  So I can see a use for:
>
>   <!ELEMENT creator (#PCDATA|(type,name,description)>
>   <!ELEMENT name (#PCDATA)>

I agree with the above statement as a general design philosophy provided you
permit the occasional exception.

I have been having some discussions with MARC listserv regarding non-sorting
portions of a title and I believe there needs to be one exception to not
mixing PCDATA and elements. Assume you add a "nonsort" element as a method
of marking up the portions of a title that are not to be sorted.  If you
don't allow it to intermix with PCDATA within the title, you will have
problems distinguishing between the parts of the title.  For example:

    <title>
      <part>first part of the title</part>
      <nonsort>I belong to first title part but should be ignored</nonsort>
      <part>second part of the title</part>
    </title>

With the above approach, you can't tell which part of the title the
"nonsort" element belongs to.  It should be marked up as follows to avoid
any ambiguity:

    <title>
      <part>first part of the title
          <nonsort>I belong to first title part but should be
ignored</nonsort>
      </part>
      <part>second part of the title</part>
    </title>

Geoff Mottram
Minaret Corp.
[log in to unmask]