On 11/18/2013 03:09 PM, Jirka Kosek wrote:
I have just found that IDs are rewritten also on <resourceid> element
during the preprocessing. I think this is wrong because usually there
are put IDs that are connecting topic with something outside DITA -- for
example with application IDs for invoking context sensitive help.
For our own needs, we have no problem using what's output by ditac to
generate context sensitive help. See this FAQ:
---
I use XMLmind DITA Converter to generate HTML Help. In order to
implement contextual help, my application needs to be able to address
specific sections in the generated .chm file. How can I do this?
---
http://www.xmlmind.com/ditac/faq.html#conversion_of_dita_ids
It
would be better if those wouldn't be rewritten as other "norma" IDs.
For my purposes I made fix in processIds() method in PreProcessor.java:
if (child.getNodeType() == Node.ELEMENT_NODE &&
DITAUtil.hasDITANamespace(child) &&
!child.getNodeName().equals("resourceid")) { // Skip SVG
and MathML and resourceid
You might consider to make similar change in your code base.
We agree with you. This is clearly explained in the DITA reference:
http://docs.oasis-open.org/dita/v1.2/os/spec/langref/resourceid.html
Note that currently, the <resourceid> element is ignored by our stock
XSLT stylesheets. See ditac_install_dir/xsl/fo/prolog.xsl;
ditac_install_dir/xsl/xhtml/prolog.xsl. Therefore there is currently no
real need to make this change.
However, we'll make the change in case someone customizes our stock
XSLT stylesheets in order to put <resourceid> into use.
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support