question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

strictTaskbodyConstraintMod.xsd refers to taskMod.xsd unversioned

See original GitHub issue

Expected 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:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
robandercommented, Jan 26, 2018

Fixed with #2878

1reaction
easiroiscommented, Jan 7, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found