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
Subject Scheme Flagging in XHTML/PDF outputs with chunking (DOT 1.7) #1442
Comments
Also in: DITA-OT1.7.1/xsl/map2htmtoc/map2htmlImpl.xsl there is an XSLT template like: <xsl:template match="processing-instruction('workdir')" mode="get-work-dir">
<xsl:value-of select="concat(., '/')"/>
</xsl:template> which is wrong because all apply-templates are in the context of the PI. |
Actually both templates in dita-utilities.xsl with modes "get-work-dir" and "get-path2project" should match the first PI from the file using [1] in the @match attribute. |
When temporary file contains multiple workdir-uri processing instructions, only the first one should be used.
@raducoravu are you able to test the fix from hotfix/1.7.2 branch? |
I tested the fix by porting the stylesheet modifications to the DITA OT 1.7 distribution I already have. If you look in the "xsl/preprocess/flagImpl.xsl" at the XSLT template: <xsl:template match="*" mode="copy-element"> I added some xsl:messages and because of the chunking attribute the edited file name (variable $editedFileName) is something like: And it is being searched in a properties file (variable $PROPERTIES-FILE) like "temp/xhtml/subject_scheme.dictionary" which maps only the original file names and not this random generated file name. I do not know how this can be solved. Probably the "subject_scheme.dictionary" should have taken into consideration the chunking which is made and which changes the names of the original files. |
This issue has been automatically marked as stale because it has not been updated recently. It will be closed soon if no further activity occurs. Thank you for your contributions. |
I can no longer reproduce the problem with DITA OT 3.x. I'm also attaching a zip with the samples. |
One of our users reported this http://www.oxygenxml.com/forum/post24119.html#p24119
Flagging based on subject scheme values does not work when a DITA Map has the @chunk attribute set to it.
Examples:
main.ditamap
doctor_who_subject.ditamap
serials_list.dita:
flag.ditaval:
Errors like this are reported:
Probable causes:
But from what I looked in the temporary files folder the chunked output topic contains more than one occurance of the `? . So the match should be made more specific, using something like "/processing-instruction('workdir-uri')[1]"
The text was updated successfully, but these errors were encountered: