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".
* XHTML output has a hyperlink to the file as text
* PDF and Word outputs have a hyperlink that attempts to run the script
(which could be useful, I suppose)
Could you clarify the situation , please.
regards
/Roy MacLean
Dovetail
Roy MacLean| Technical Writer | T: +44 20 7562 7777 | M: +44 7956 474 911 |
Dovetail | 51 Moorgate, London, EC2R 6BH, UK |
The information in this email is for the sole use of the intended
recipients(s). It may be confidential and/or legally privileged. Any review,
disclosure, copying, distribution, retention, or any other use by others is
prohibited and may be unlawful. If you are not the intended recipient, please
contact the sender and delete all copies. We reserve the right to monitor email
content for the purposes of ensuring compliance with legal requirements and
company policies and your sending to, or receiving from, us of any email
constitutes your agreement to these terms.
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support