You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2022/01/20 16:45:00 UTC

[jira] [Resolved] (DAFFODIL-2618) TDML test file cannot specify xmlns="" on the tdml:defineSchema element

     [ https://issues.apache.org/jira/browse/DAFFODIL-2618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Beckerle resolved DAFFODIL-2618.
-------------------------------------
    Fix Version/s: 3.3.0
         Assignee: Mike Beckerle
       Resolution: Not A Bug

Per prior comment, not a bug. Working as designed. 

> TDML test file cannot specify xmlns="" on the tdml:defineSchema element
> -----------------------------------------------------------------------
>
>                 Key: DAFFODIL-2618
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2618
>             Project: Daffodil
>          Issue Type: Bug
>          Components: TDML Runner
>    Affects Versions: 3.2.1
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Major
>             Fix For: 3.3.0
>
>
> 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:
>  
> {code:java}
> <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>
> {code}
>  
> 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. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)