W3C home > Mailing lists > Public > public-webfonts-wg@w3.org > November 2010

RE: Metadata Questions

From: Levantovsky, Vladimir <Vladimir.Levantovsky@MonotypeImaging.com>
Date: Mon, 8 Nov 2010 18:18:26 -0500
To: Tal Leming <tal@typesupply.com>, WOFF Working Group FONT <public-webfonts-wg@w3.org>
Message-ID: <7534F85A589E654EB1E44E5CFDC19E3D053BC741CE@wob-email-01.agfamonotype.org>
Thank you, Tal.

As a sanity check, I attempted to quickly put together the DTD for the WOFF metadata. Let's discuss the comments in the telcon. Also, should we consider adding DTD as an annex?

<!ELEMENT metadata (uniqueid?, vendor*, credits?, description?, license?, copyright?, trademark?, licensee?, extension*)>
<!ATTLIST metadata version CDATA #REQUIRED>

<!ELEMENT uniqueid (#PCDATA)>
<!ATTLIST uniqueid id CDATA #IMPLIED>          // should it be required?

<!ELEMENT vendor (#PCDATA)>
<!ATTLIST vendor name CDATA #REQUIRED>
<!ATTLIST vendor url CDATA #IMPLIED>

<!ELEMENT credits (credit+)>                   // at least one <credit> is required, "must" should be uppercase
    <!ELEMENT credit (#PCDATA)>
    <!ATTLIST credit name CDATA #REQUIRED>
    <!ATTLIST credit url CDATA #IMPLIED>
    <!ATTLIST credit role CDATA #IMPLIED>

<!ELEMENT description (#PCDATA)>               // should it be <!ELEMENT description (text+)>
<!ATTLIST description url CDATA #IMPLIED>

<!ELEMENT license (#PCDATA)>                   // should it be <!ELEMENT license (text+)>
<!ATTLIST license url CDATA #IMPLIED>
<!ATTLIST license id CDATA #IMPLIED>

<!ELEMENT copyright (#PCDATA)>                 // should it be <!ELEMENT copyright (text+)>

<!ELEMENT trademark (#PCDATA)>                 // should it be <!ELEMENT trademark (text+)>

<!ELEMENT licensee (#PCDATA)>
<!ATTLIST licensee name CDATA #REQUIRED>

<!ELEMENT extension (name?, item+)>
<!ATTLIST extension id CDATA #IMPLIED>

    <!ELEMENT name (#PCDATA)>                  // multiple <name> elements in DTD? Should it be e.g. ext_name?
    <!ATTLIST name xml:lang CDATA #IMPLIED>

    <!ELEMENT item (name+, value+)>
    <!ATTLIST item id CDATA #IMPLIED>

        <!ELEMENT name (#PCDATA)>              // should it be item_name?
        <!ATTLIST name xml:lang CDATA #IMPLIED>

        <!ELEMENT value (#PCDATA)>
        <!ATTLIST value xml:lang CDATA #IMPLIED>

<!ELEMENT text ANY>
<!ATTLIST text xml:lang CDATA #IMPLIED>

Regards,
Vlad


> -----Original Message-----
> From: public-webfonts-wg-request@w3.org [mailto:public-webfonts-wg-
> request@w3.org] On Behalf Of Tal Leming
> Sent: Thursday, November 04, 2010 10:40 AM
> To: WOFF Working Group FONT
> Subject: Metadata Questions
> 
> I've run into a few more metadata questions while working on the
> validator...
> 
> - In the uniqueid element, should the id attribute be required?
> - For elements that have defined text sub-elements, should the spec
> require at least one text element?
> - Should the credits element require one credit element?
> 
> Tal
Received on Monday, 8 November 2010 23:18:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 8 November 2010 23:18:59 GMT