Page 1 of 1

Xref to email address, DOTX063W

Posted: Tue Jan 17, 2012 9:18 pm
by Bob.Conlin
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?

Re: Xref to email address, DOTX063W

Posted: Wed Jan 18, 2012 11:47 am
by Radu
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

Re: Xref to email address, DOTX063W

Posted: Fri Jul 26, 2019 9:38 am
by shilpah123
Thanks for sharing this. I tried it and the link opens a mail which is what I needed.