Schemas/SMIL

From Code Synthesis Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 12:46, 1 February 2007
Boris (Talk | contribs)
(Add a page for the SMIL schemas)
← Previous diff
Revision as of 14:19, 2 August 2007
Boris (Talk | contribs)
(Remove deprecated options)
Next diff →
Line 10: Line 10:
The following options are recommended to compile the SMIL schemas (replace ' with " on Windows): The following options are recommended to compile the SMIL schemas (replace ' with " on Windows):
- --namespace-map "http://www.w3.org/1999/02/22-rdf-syntax-ns#=rdf" --morph-anonymous \+ --generate-polymorphic
- --anonymous-regex '/.* transitionFilterPrototype/calcMode2/' --generate-polymorphic+ --namespace-map "http://www.w3.org/1999/02/22-rdf-syntax-ns#=rdf"
 + --anonymous-regex '/.* transitionFilterPrototype/calcMode2/'
You should also consider using the --root-element-* options to select for which root elements you need parsing and serialization functions. You should also consider using the --root-element-* options to select for which root elements you need parsing and serialization functions.

Revision as of 14:19, 2 August 2007

This page contains information on using the SMIL 2.0 schemas with XSD.

SMIL 2.0 schemas have a pathological circular dependency between smil20.xsd and smil20-language.xsd which prevent XSD from sucessefully translating this schemas. This however is fairly easy to overcome by splitting involved files into several parts. The resulting schemas are semantically equivalent to the original.

The following two packages contain the official SMIL 2.0 schemas with circular dependencies removed by introducing several -base files:

The following options are recommended to compile the SMIL schemas (replace ' with " on Windows):

--generate-polymorphic
--namespace-map "http://www.w3.org/1999/02/22-rdf-syntax-ns#=rdf"
--anonymous-regex '/.* transitionFilterPrototype/calcMode2/' 

You should also consider using the --root-element-* options to select for which root elements you need parsing and serialization functions.

Personal tools