Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Bug
-
3.2.1
-
None
Description
The preferred style for writing a DFDL schema uses the default namespace for the XML schema namespace, so as to avoid having to put a prefix like "xs:" on every element.
The prefered style for writing a TDML test file similarly uses a default namespace for the TDML namespace so as to avoid having to put a prefix like "tdml:" on every element.
Combining these two ideas, one would like to be able to embed a DFDL schema within the TDML file by way of this:
<tdml:defineSchema name="mySchema" xmlns="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified"> .... schema here. Note that no "xs:" prefix is needed.... <element name="foo" ..../> </tdml:defineSchema>
This doesn't work however. Something about the way the embedded schema is removed and placed into a separate schema temp file for compilation makes namespace assumptions and doesn't tolerate the xmlns default declaration.