DITA-OT Error for trailing space in weblinks

18 views
Skip to first unread message

mr.uma...@gmail.com

unread,
Jan 13, 2022, 4:34:53 AM1/13/22
to DITA-OT Users
Hi,

DITA-OT (3.5.4) is throwing an error when a trailing space is found in href attribute of xref/link element.

[filter] file:/C:/dita-workarea/o2-workarea/topics/concept/concept-1.dita:39:35: [DOTJ054E][ERROR] Unable to parse invalid href attribute value "https://kb.bluestream.com/kb/#/en-US/XdX_XDocs51_30721_1 ", using 'https://kb.bluestream.com/kb/#/en-US/XdX_XDocs51_30721_1'.

The DITA Topic has following xref:
<xref href="https://kb.bluestream.com/kb/#/en-US/XdX_XDocs51_30721_1 " format="html" scope="external"/>

I am not sure if this is a valid error. Leading/trailing spaces do not have any impact in the link functionality. It could be a warning.

Can this be fixed?

Best Regards,
Uma Shankar

Radu Coravu

unread,
Jan 13, 2022, 7:50:22 AM1/13/22
to mr.uma...@gmail.com, DITA-OT Users
Hi Uma,

Maybe you can try the same thing with the latest DITA OT 3.6.1 to see if the same behavior persists.
I'm not sure if this is a bug in the publishing engine or not.
Looking at the DITA 1.3 specification for the "href" attribute:

     Note that certain characters - including but not limited to the hash sign ("#"), question mark ("?"), back slash ("\"), and space - are not permitted unescaped within URIs.

Now I understand that you expect the spaces at the beginning and end of the href to be ignored but it seems the specification does not explicitly say this.

Regards,
Radu

--
You received this message because you are subscribed to the Google Groups "DITA-OT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dita-ot-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/dita-ot-users/0cb719ff-c25f-4255-a43f-5121f7b0fc83n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages