On 01/05/2016 11:40 AM, Poulsen, Claus (ELS-AAL) wrote:

I’ve recently upgraded to XMLEditor 6.5 and now discovered that using
the xxetool convert, with parameter -profile my_ditaval_file.ditaval
does not seem to work anymore, using this line:

xxetool convert -profile maps/ditaval/filtertest.ditaval -vvv
dita.toWebHelp maps/filtertest.ditamap -u output/terminal/manual/filter

I’ve noticed this line in the upgrade notes for 6.4:
The |-profile| option of command-line tool |xxetool convert| had no
effect. This regression was introduced in version 6.3 (April 21, 2015)
<http://www.xmlmind.com/xmleditor/changes.html#v6.3.0>.
(From http://www.xmlmind.com/xmleditor/changes.html)

I presume this means that it was supposed to work from 6.4 and onwards.

Yes, that's right.




Running the conversion from inside XMLmind with the ditaval file DO work
as expected.


Indeed.

We had no problem reproducing this bug which is specific to xxetool.



--> Specifying a .profiles file and not a .ditaval file works fine. Example:

---
xxetool convert -profile svg.profiles#no_svg -vvv dita.toWebHelp manual.ditamap -u /tmp/t1
---



--> Specifying a .ditaval file is completely ignored. Example:

---
xxetool convert -profile no_svg.ditaval -vvv dita.toWebHelp manual.ditamap -u /tmp/t2
---



--> This does not work as expected because no_svg.ditaval is lacking a media=print|screen query.

"no_svg.ditaval?media=screen" should work but currently does not. Therefore, for now, the only workaround is to specify an *absolute* .ditaval *URL* ending with a query like "?media=screen".

Example using this workaround:

---
xxetool convert -profile 'file:/home/hussein/src/ditac/docsrc/manual/no_svg.ditaval?media=screen' -vvv dita.toWebHelp manual.ditamap -u /tmp/t2m
---



We'll fix this bug in next release. Of course, once the bug fixed, the user of xxetool will not be forced to append "?media=XXX" after its .ditaval filename.



--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to