# $Id: Makefile,v 1.3 2000/07/26 03:20:29 connolly Exp $ PERL=perl smil.xml: smil.dtd dtd2xsd.pl $(PERL) dtd2xsd.pl \ -prefix smil -ns http://www.w3.org/TR/REC-smil \ -attrgroup '.*-(attr|attrs|attributes|attribute)?' \ $@ # hmm... pre.content is probably more of an abstract element/exemplar # than a model group xhtml.xml: dtd2xsd.pl xhtml1-strict.dtd $(PERL) dtd2xsd.pl \ -prefix html -ns http://www.w3.org/1999/xhtml \ -attrgroup '(coreattrs|i18n|events|focus|attrs)' \ -attrgroup '(cellhalign|cellvalign)' \ -simpletype 'ContentType' string \ -simpletype 'ContentTypes' string \ -simpletype 'Charset' string \ -simpletype 'Charsets' string \ -simpletype 'LanguageCode' NMTOKEN \ -simpletype 'Character' string \ -simpletype 'Number' nonNegativeInteger \ -simpletype 'LinkTypes' string \ -simpletype 'MediaDesc' string \ -simpletype 'URI' uriReference \ -simpletype 'UriList' string \ -simpletype 'DateTime' date \ -simpletype 'Script' string \ -simpletype 'StyleSheet' string \ -simpletype 'Text' string \ -simpletype 'FrameTarget' NMTOKEN \ -simpletype 'Length' string \ -simpletype 'MultiLength' string \ -simpletype 'MultiLengths' string \ -simpletype 'Pixels' nonNegativeInteger \ -simpletype 'Shape' string \ -simpletype 'Coords' string \ -simpletype 'InputType' string \ -simpletype '(TFrame|TRules|TAlign|CAlign|Scope)' string \ -modelgroup '(special|fontstyle|phrase|inline.forms|misc|inline|Inline|heading|lists|blocktext|block|Block|Flow|a.content|pre.content|form.content|button.content|head.misc)' \ $@ #@@hmm... geExt #@@fix up enumerated types, e.g. Boolean svg.xml: dtd2xsd.pl svg-20000721.dtd $(PERL) dtd2xsd.pl \ -prefix svg -ns http://www.w3.org/2000/svg \ -simpletype '(BaselineShiftValue|Boolean|ClassList|ClipPathValue|ClipFillRule|ContentType|Coordinate|Color|CursorValue|EnableBackgroundValue|ExtensionList|FeatureList|FilterValue|FontFamilyValue|FontSizeValue|FontSizeAdjustValue|GlyphOrientationHorizontalValue|GlyphOrientationVerticalValue)' string \ -simpletype Integer integer \ -simpletype '(LanguageCode|LanguageCodes|Length|Lengths|LinkTarget|MarkerValue|MaskValue|MediaDesc|Number|OpacityValue|Paint|PathData|Points|PreserveAspectRatioSpec|Script|SpacingValue|StrokeDashArrayValue|StrokeDashOffsetValue)' string \ -attrgroup '.*Events' \ -attrgroup '.*Attrs' \ -attrgroup '.*Attrs' \ -attrgroup structured_text \ -attrgroup '.*_attributes.*' \ -attrgroup '.*Attributes.*' \ -modelgroup '(descTitle|descTitleDefs)' \ $@