Thanks for your help! you wouldn't catch me in the office at 19:41 ;-}

I shall start by requesting an XML Mind upgrade, and then investigate the DITA 
1.3 possibility you describe. I agree that graphics by reference are usually 
the way to go, but this particular project will welcome it the possibility of 
clickable graphics. They're already pretty impressed with what migration to 
DITA could offer - they sent me a sample document before our first meeting, 
which I converted into DITA and output as WebHelp. "Wow! however did you do 
that? that's what we want!" was their response.

N

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: dinsdag 10 januari 2017 19:41
To: Grundtvig Nielsen Niels
Cc: '[email protected]'
Subject: Re: [XXE] SVG question

On 01/10/2017 03:13 PM, Grundtvig Nielsen Niels wrote:
>
> after a question from a colleague who's really keen to move his
> documentation set to DITA, I carried out a quick experiment with SVG:
> to my satisfaction, I found out that you can include hyperlinks in .svg code.
>
>
>
> In the attached file, you should see that the text 'daily Webfocus
> report ...' is a hyperlink to an .html file (at least in Mozilla and IE)
>
>
>
> Regrettably, it seems that when the .svg file is used as a referenced
> graphic in a DITA topic and output to Webhelp (as an .svg) the
> hyperlink is no longer recognised. Is this a known limitation, or
> browser-dependent, or something else? I would like to have the
> hyperlinks working, but have not been reckless enough to tell the my
> colleague that they will ;-}
>
>

For the hyperlink to work, the SVG element must be *embedded* in the HTML page 
XXE generates. That is, something like:

<p><svg version="1.1" xmlns="http://www.w3.org/2000/svg"; ...>
   ... SVG CONTENT HERE ...
   <a xlink:href="threshold_report.html">
   ... SVG CONTENT HERE ...
</svg></p>

The hyperlink does not seem to work with something like:

<p><img src="creditRiskControl_linktest.svg"/></p>



DITA 1.3 (hence a very recent XXE) supports this:

1) Use the "Add image" button found in the DITA Topic toolbar 
(http://www.xmlmind.com/xmleditor/_distrib/doc/dita/help.html#topic_toolbar).

2) Select svg-container or fig(svg-container).

3) Click the image placeholder. This selects svg-ref

4) Use the Edit tool to replace svg-ref by svg:svg [*].

5) Double-click the newly insert SVG placeholder (a blank area). This displays 
a file chooser dialog box allowing to *embed* an SVG file. See attached example.

6) Convert the DITA document to HTML or to Web Help. The hyperlink found in the 
SVG embedded in the generated HTML page works OK.



---
[*] Our svg-container element template contains by default svg-ref and
not svg:svg because we assumed that most user prefer to link an SVG file
rather than embed it.

Note that it's possible to define custom svg-container element templates
without leaving XXE. See tutorial "Inserting custom element templates",
http://www.xmlmind.com/xmleditor/_tutorial/element_template/index.html




*********************************************************************************************
Worldline SA/NV - Chaussee de Haecht 1442 Haachtsesteenweg
- 1130 Brussels - Belgium
RPM-RPR Bruxelles-Brussel - TVA-BTW BE 0418.547.872
Bankrekening-Compte Bancaire-Bank Account 310-0269424-44
BIC BBRUBEBB - IBAN BE55 3100 2694 2444

"The information contained in this e-mail and any attachment there to be 
confidential and may contain information which is protected by intellectual 
property rights.
This information is intended for the exclusive use of the recipient(s) named 
above.
This e-mail does not constitute any binding relationship or offer toward any of 
the addressees.
If you are not one of the addressees , one of their employees or a proxy holder 
entitled to hand over this message to the addressee(s), any use of the 
information contained herein (e.g. reproduction, divulgation, communication or 
distribution,...) is prohibited.
If you have received this message in error, please notify the sender and 
destroy it immediately after.
The integrity and security of this message cannot be guaranteed and it may be 
subject to data corruption, interception and unauthorized amendment, for which 
we accept no liability."

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to