Skip to content

Inconsistent XML representation of title #113

@filip26

Description

@filip26

A title may appear on a document, a descriptor or on a link. The XML example in the specification represents title on document level as an element but on descriptor level as an attribute.

   <?xml version="1.0"?>
     <alps version="1.0">
     <title>Search Profile</title>
     <doc href="http://example.org/samples/full/doc.html" />

     <descriptor id="search" type="safe" title="Search for a profile.">
       ...
     </descriptor>
   </alps>

see 2.2.15 paragraph.

Let's make it consistent and recommend title be represented either as an element or as an attribute. My vote goes to an element because it recalls (X)HTML.

e.g.

   <?xml version="1.0"?>
     <alps version="1.0">
     <title>Search Profile</title>
     <doc href="http://example.org/samples/full/doc.html" />

     <descriptor id="search" type="safe">
         <title>Search for a profile.</title>
       ...
     </descriptor>
   </alps>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions