<Project name goes here>
Version |
Date |
Changes |
Author |
1.0 |
June 17, 2013 |
Initial version. |
Lief |
2.0 |
June 17, 2013 |
Removed some unnecessary files from the .zip file. |
Lief |
3.0 |
June 21, 2013 |
Significantly improved XSL templates. |
Lief |
Description
As of ePublisher 2012.4 there is no default support for DITAVAL flagging. This has been requested here: http://wiki.webworks.com/action/show/Enhancements/DITAflagging
I attended a Study Hall session where we got DITAVAL flagging to work, but only supported changing the color of text (and only for @otherprops at that). I have extended it to support @rev and @status and to also allow alt-text from <startflag> and <endflag>.
Caveats
In DitavalFlagging3.zip, the XSL templates are much cleaner than in v1 and v2; however, there is still no support for images in <startflag> or <endflag> nor is there any support for inline elements (i.e., Characters) -- only paragraph and topic level elements.
Project
In the attached .zip file are two files that are overridden: paragraph.xsl and generate-xml.xsl. I demonstrate that the changes work for both PDF XSL-FO and DHTML targets. When looking at the output, text inside the square brackets [] or in the case of !!!PDF Only!!! was set in the DITAVAL. The colon and space after the colon (or before the square bracket in the case of <endflag>) is set in various templates at the end of paragraph.xsl. Adjust any and all of these to suit your preferences.