Comments (6)
Which DITA-OT version and how was it run. If I mock a test case like that and run it with 4.2 on the command line, I get
Error: file:/Volumes/tmp/src/topic.dita:3:17: Attribute value "%50" of type ID must be an NCName when namespaces are enabled.
from dita-ot.
The message content comes from SAXException thrown by the XML parser. In order to get some message ID to the message, we could add a generic parsing message that doens't have a <reason>
other than the message text from the XML parser.
from dita-ot.
So if I run DITA OT 4.2 on Windows on a DITA Map which contains a topic like this:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="%50">
<title>Introduction</title>
</topic>
the command line I run and the error look like this (notice no [Error:] marker before the reported error):
"C:\Users\radu_coravu\Downloads\dita-ot-4.2/bin/dita.bat" -f html5 -o D:\samples\dita\flowers/out/html5 -t D:\samples\dita\flowers/temp/html5 -i D:\samples\dita\flowers\flowers.ditamap
file:/D:/samples/dita/flowers/topics/introduction.dita:3:17: Attribute value "%50" of type ID must be an NCName when namespaces are enabled.
from dita-ot.
On Mac OS indeed there is an "Error:" marker with a red foreground when running about the same command.
from dita-ot.
Ok, so this is a case where on Windows the CLI doesn't use colours in the log and the prefix is missing. I'll open a PR to make sure the prefixes are output on Windows too.
from dita-ot.
@jelovirt yes, also when the -no-colors flag is used the prefix should be output as well.
from dita-ot.
Related Issues (20)
- Fail to replace temp files on Windows with looping referenced ditamaps HOT 2
- Error in nested DITA-OT project file is not properly reported. HOT 1
- DOTJ031I is triggered four times
- Echo current deliverable in non-verbose mode HOT 2
- preprocess2 fails when topicref is missing regardless of processing-mode HOT 2
- Output is not named as expected when using root-chunk-override=to-content HOT 2
- Chunking does not work when using xsd
- --nav-toc=full is not full when topicrefs have no href
- HTML5: nested topics do not appear in ToC HOT 4
- DITAVAL "passthough" action does not work for profiling applied to top-level (root) topic element
- Topic cross reference links in generated HTML are broken in case of chunk=to-content
- Cannot use the same mark for pushbefore and pushafter conactions
- Should be able to change severity for Java based messages HOT 1
- DOTJ049W should help me to find the not compliant attribute value HOT 1
- xref link to a list is not working when the topic is used as conref in another topic and published with transtype xhtml HOT 1
- docker: permission issue on pdf compilation when specifying user-id/group HOT 5
- PDF Theme not Obeying Heading title-numbering
- Dita 2.0 chunk="combine" on root element produces incorrect output
- Handling content outside the map directory: incorrect links in nav toc (HTML5)
- foreign xlink:href attributes are processed, resulting into NullPointer exception HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dita-ot.