Daffodil's TDML runner takes the schemas found inside the ".tdml" and creates a schema and defines some namespace definitions around them for xmlns:ex="http://example.com", and for tns (same URL). This is done by SchemaUtils.dfdlTestSchema(...) in daffodil-lib.
It also provides xs and xsd, xsi, fn, dfdl, and dfdlx namespace prefixes. ________________________________ From: Sloane, Brandon <[email protected]> Sent: Wednesday, June 19, 2019 2:43:36 PM To: [email protected] Subject: Using tns: prefix in tdml files I am working on a tdml file and noticed that I am unable to set the targetNamespace attribute on the root element. When I look at other tdml files, I see that they are able to use the "tns:" prefix without specifying either a targetNamespace, or a xmlns:tns attribute anywhere. Any explanation for why this works? Brandon T. Sloane Associate, Services [email protected] | tresys.com
