SVG 1.1 - font-face-src - mismatch between normative text and DTD

Hi

It looks like there’s an inconsistency in the SVG 1.1 Recommendation between the normative text and the fonts modules DTD for font-face-src

https://www.w3.org/TR/SVG/fonts.html#FontFaceElement

says the content model of the font-face element is 
“Any number of descriptive elements and at most one ‘font-face-src’ element, in any order.”

My interpretation of this statement is font-face can contain zero or one font-face-src elements.

The DTD says this
https://www.w3.org/TR/SVG/svgdtd.html#DTD.1.39


<!-- font-face: Font Face Element ...................... -->

<!ENTITY % SVG.font-face.extra.content "" >

<!ENTITY % SVG.font-face.element "INCLUDE" >
<![%SVG.font-face.element;[
<!ENTITY % SVG.font-face.content
    "( ( %SVG.font-face-src.qname;,
         ( %SVG.Description.class; %SVG.font-face.extra.content; )* )
       | ( ( %SVG.Description.class; %SVG.font-face.extra.content; )+,
           %SVG.font-face-src.qname;,
    ( ( %SVG.Description.class; %SVG.font-face.extra.content; )* )? ) )"
>
<!ELEMENT %SVG.font-face.qname; %SVG.font-face.content; >
<!-- end of SVG.font-face.element -->]]>

If I’ve read the DTD correctly it says the font-face element must contain exactly one font-face-src element and any number of descriptive elements. The behavior of the W3 validator (which uses this DTD) matches this interpretation – it emits an error unless font-face contains a font-face-src element.

So the normative text in SVG 1.1 says font-face-src is optional, but the DTD says it’s mandatory.

In SVG Tiny 1.2 font-face-src is optional
https://www.w3.org/TR/SVGTiny12/fonts.html#FontFaceElement


Best Regards
Mark

Mark Rogers - mark.rogers@powermapper.com
PowerMapper Software Ltd - www.powermapper.com 
Registered in Scotland No 362274 Quartermile 2 Edinburgh EH3 9GL 
 

Received on Tuesday, 27 September 2016 12:24:18 UTC