On 02/23/2012 09:52 AM, Roy MacLean wrote: > I've just been trying out the <coderef> element: > > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" > "topic.dtd"> > <topic id="codefreftest"> > <title>Coderef Test</title> > <body> > <p>Here's a codeblock with a coderef: > <codeblock> > <coderef href="../../../../../Ruby/script/download.rb"/> > </codeblock> > </p> > <p>How did that come out?</p> > </body> > </topic> > > So: > > * The DITA 1.2 spec says: "When evaluated, the <coderef> element > should cause the target code to be displayed inline".
We simply missed this point when reading the DITA spec. > * XHTML output has a hyperlink to the file as text Seems reasonable, given the fact that ditac generates an hyperlink to the text file. > * PDF and Word outputs have a hyperlink that attempts to run the > script (which could be useful, I suppose) It's Acrobat Reader (or the clone you use) which has this --in our opinion, not reasonable-- behavior. > > Could you clarify the situation , please. > Next release of ditac (expected in about 2 weeks) should contain a fix for this bug. (But XXE will *not* display the target code inline.) -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

