Xref to email address, DOTX063W

Bob.Conlin
Posts: 22
Joined: Sun Aug 14, 2011 5:21 am

Xref to email address, DOTX063W

Post by Bob.Conlin » Tue Jan 17, 2012 9:18 pm

Hello,
For every occurance of a xref to an email address such as

Code: Select all

<xref href="yourEmail@address.com" format="html"/>
I get an error like

Code: Select all

[java] [DOTX063W][WARN]: It appears that dita file 'yourEmail@address.com' is not referenced by a topicref tag in the ditamap file. Please make sure that 'yourEmail@address.com' is referenced in the ditamap file.The location of this problem was at (File = somefilename.dita, Element = xref:2)
The rendered PDF or HTML files display the link correctly & the links work as expected (opening an email window). What can be done to remove the error?

Radu
Posts: 6450
Joined: Fri Jul 09, 2004 5:18 pm

Re: Xref to email address, DOTX063W

Post by Radu » Wed Jan 18, 2012 11:47 am

Hi Bob,

I do not quite reproduce the same behavior.
I'm testing using Oxygen 13.2 + DITA OT 1.5.4.

So building a sample DITA Map with a topic which has a reference like:

Code: Select all

<xref href="yourEmail@address.com" format="html"/>
I obtain no error in the DITA OT console output but clicking the link both in the HTML and PDF outputs does not properly show the mail client.

If I make the reference to be like this:

Code: Select all

<xref href="mailto:yourEmail@address.com" format="html"/>
Then clicking the email reference in the HTML output works as expected.
But the PDF output still does not properly work, from what it seems the PDF output likes more this form:

Code: Select all

<xref href="yourEmail@address.com" format="mail"/>
because it does not try anymore to make the href relative to the referencing topic.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

shilpah123
Posts: 6
Joined: Wed Mar 13, 2019 6:37 am

Re: Xref to email address, DOTX063W

Post by shilpah123 » Fri Jul 26, 2019 9:38 am

Thanks for sharing this. I tried it and the link opens a mail which is what I needed.

Post Reply