Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2618

TDML test file cannot specify xmlns="" on the tdml:defineSchema element

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.2.1
    • 3.3.0
    • TDML Runner
    • 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. 

      Attachments

        Activity

          People

            mbeckerle Mike Beckerle
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: