I'm sorry but we don't understand action="passthrough", so it's not
implemented in ditac.
Reference:
http://docs.oasis-open.org/dita/dita/v1.3/os/part2-tech-content/langRef/ditaval/ditaval-prop.html
We forgot to document this limitation in:
www.xmlmind.com/ditac/_distrib/doc/manual/limitations.html
but this omission is fixed now. Sorry again!
---
PS: If you want to pass something to the XHTML generated by ditac, the
only way to do that is to specify an "outputclass" attribute. You'll get
a corresponding XHTML element with a "class" attribute having the same
value as attribute "outputclass". But I'm not sure that this helps.
On 11/14/2016 02:49 PM, Oliver Hall wrote:
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