strictTaskbodyConstraintMod.xsd refers to taskMod.xsd unversioned
See original GitHub issueExpected Behavior
The reference to taskMod.xsd
should be versioned as with all other references in the schema files.
Actual Behavior
It references taskMod.xsd
without version qualifier and it causes problems when running transformations that are based on versioned schema references with version tied to 1.2
The following command shows pretty well how strictTaskbodyConstraintMod.xsd
is different from all other files:
find src/main/plugins/org.oasis-open.dita.v1_2/ -name *.xsd | xargs grep "redefine schemaLocation"
Possible Solution
change schema reference from
<xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:taskMod.xsd">
to
<xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:taskMod.xsd:1.2">
Steps to Reproduce
Run a transformation on a map that contains a task with xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:task.xsd:1.2"
.
Copy of the error message, log file or stack trace
The relevant log output line is:
src-resolve: Cannot resolve the name 'tasktroubleshooting' to a(n) 'group' component.
Environment
- DITA-OT version: 2.5.4, possibly all others that support both DITA 1.2 and 1.3
- Operating system and version: independent of
- How did you run DITA-OT?
dita
command - Transformation type: custom on top of PDF2
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
W3C XML Schema Definition Language (XSD) 1.1 Part 2
The [XML] specification defines limited facilities for applying datatypes to document content in that documents may contain or refer to DTDs ...
Read more >B.2 Migrating from DITA 1.1 to 1.2 - OASIS Open
To do the same thing for a schema, the strictTaskbodyConstraintMod.xsd file must be defined in the catalog used to resolve the schema using ......
Read more >COD Common Record XML Schema Version 5.0a (Updated ...
Schema Files and 2022–23 COD Technical Reference Information. A file that schools and third-party software providers can use to prepare for ...
Read more >What is XML Schema Definition (XSD)? - TechTarget
It is primarily used to define the elements, attributes and data types the document can contain. The information in the XSD is used...
Read more >xsd validation failed - Reference local xsd file - Stack Overflow
The xs:import element takes as the schemaLocation attribute (https://www.w3.org/TR/xmlschema-0/#schemaLocation) a relative or absolute URL ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed with #2878
The 1.2 was/is an SVN repository. I can bring it up at the next TC meeting. Not sure what’s the state of the repository or the tools to build the package way back when.