New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navtitles in prolog flagged as invalid #2
Comments
Can you give me a precise example of a topic on which the refactoring is applied and results in this error?
but this is different from the error you get. |
Yes, for example https://github.com/dita-ot/docs/blob/develop/reference/dita-v2-0-support.dita <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd">
+<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA 2.x Concept//EN" "concept.dtd">
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
<concept id="ID">
<title>DITA 2.0 preview support</title>
- <titlealts>
+ <prolog>
<navtitle>DITA 2.0 preview</navtitle>
- </titlealts>
+ </prolog> This shows both errors:
If I move the new In https://github.com/dita-ot/docs/blob/develop/reference/store-api.dita, there's already a <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
+<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA 2.x Topic//EN" "topic.dtd">
<!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
<topic id="store-api">
<title>Store API – Processing in memory</title>
- <titlealts>
- <navtitle>Store API</navtitle>
- </titlealts>
+
<shortdesc>DITA-OT originally assumed resources would be available on disk and available from file paths. Recent
versions added URI input, so HTTPS resources could be used, but temporary and output resources were still
file-based. DITA-OT 3.6 introduces a new Store API that can process temporary resources in memory instead of writing
them to disk.</shortdesc>
<prolog>
+ <navtitle>Store API</navtitle>
+
<metadata>
<keywords>
<indexterm>Store API</indexterm> but still complains that it's not valid in the new location. |
@infotexture I added one more XSLT change to try and move the prolog after the shortdesc: but I'm not sure why you get that error with the "store-api.dita" topic, is a stub topic like this valid for you?
|
@raducoravu It's not. I still get As mentioned above, I'm using the
I do have several additional frameworks directories defined under Document Type Association > Locations, so perhaps one of those is taking precedence over the latest 2.0 grammar files on my system. |
@infotexture with a DITA topic opened in Oxygen there is a toolbar action named "Open associated schema", if you press it at least you will know what DTD Oxygen uses for validation. Maybe indeed you have some extra catalogs in the "XML / XML Catalog" preferences page or as you say some older frameworks in the "Document Type Association > Locations" page which provide their own XML catalogs. |
@raducoravu Thanks, that tip helped me to debug the issue. The command opened But when I checked the file system, I noticed that my local copy of the plug-in had not been updated with the latest changes, so oXygen was validating the file against an outdated DTD, which did not contain the new alternative titles domain. When I updated the plug-in to the latest version from dita-ot/dita-ot#3833, the validation is successful. ✅ Closing this as user error. Sorry for the trouble. 🤦 |
Thanks @infotexture at least we found out that when I generate a prolog to contain the navigation title, it needs to be placed after the shortdesc to have the topic remain as valid. |
Yes, so at least something good came out of this. Not sure how to pick up the latest changes from 440fc0c though. It doesn't offer updates when I check via Manage add-ons. 🤔 If I add this repo's URL1 via Install new addons, I get an error that the add-on is already installed:
I'm guessing this is because the same action is included via the bundled DITA framework, but I still get the error even if I disable the DITA 2.0 editing support option in the DITA preferences, and the DITA 2.x frameworks under Document Type Association. Not sure which version of the add-on is loaded when this conflict is reported, but I'll remove this site from the add-on locations and uninstall for now, since the refactoring action is still there without it. Footnotes |
Right, I did not update the addon's version in the addon.xml file and Oxygen does not know a new version is available. |
After running the conversion on the DITA-OT docs source files as in #1, oXygen 24.0 complains about the new location of the
<navtitle>
element within<prolog>
, although this is correct for DITA 2.x doctypes:I'm using the
release/3.7
branch of the DITA-OT repository(with the latest 2.0 draft grammar files)as the custom DITA-OT location under Preferences > DITA, and I have the DITA 2.0 editing support enabled there too.The text was updated successfully, but these errors were encountered: