Dear Ditac Support,

I am a relatively new user of ditac and dita, and I am currently having
trouble with the 'passthrough' action in ditaval filters (
http://docs.oasisopen.org/dita/v1.2/os/spec/langref/ditaval-prop.html).

I am attempting to do the following:
I have defined a specialized attribute from props, and I wish to pass this
attribute to the html5 output.
For example, if in the dita I have
<xref href="blah" newattribute ="newvalue"/>
I want to produce in the html5 output, something like:
<a href="blah" data-newattribute = "newvalue"/>
where the attribute's value is then used in javascript. The specialsed
attribute has, I believe,  been implemented correctly (it passes
validation).

I understand, from the dita spec (
http://docs.oasis-open.org/dita/v1.2/os/spec/langref/ditaval-prop.html),
that applying the filter:

<val>
  <props att="newattribute" action = "passthrough" />
</val>

will achieve this. I am confident the filter is being picked up, as the
action exclude seems to work correctly (it removes elements with the
attribute). However, the attribute will not appear in the output and this
seems to be either:
 a bug, or,
 my own misunderstanding of the dita spec and therefore this cannot be
achieved.


Ditac Version: 3.1.0
Java Version 1.8.0_91
OS Windows 7

Kind Regards,
Oliver Hall
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to