For an xref, Author mode shows href instead of keyref
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 13
- Joined: Thu May 26, 2011 2:50 am
For an xref, Author mode shows href instead of keyref
I'm making use of the DITA feature of xrefs that the href attribute can be used as a fallback link if the key in the keyref attribute cannot be resolved in order to handle permissions. My xrefs look like this:
<xref keyref="document" href="denied.dita"/>
I want Author to show the target of this xref as the topic pointed to by the "document" key, if that key is defined. If the key is not defined, I want Author to show the target as "denied.dita".
What seems to be happening is that Author always shows the href as the target of the link instead of the keyref even if the key is defined. This does not seem compatible with the DITA spec.
I think you could duplicate this error easily but I will provide sample documents if necessary.
Thank you,
Andy Orahood
<xref keyref="document" href="denied.dita"/>
I want Author to show the target of this xref as the topic pointed to by the "document" key, if that key is defined. If the key is not defined, I want Author to show the target as "denied.dita".
What seems to be happening is that Author always shows the href as the target of the link instead of the keyref even if the key is defined. This does not seem compatible with the DITA spec.
I think you could duplicate this error easily but I will provide sample documents if necessary.
Thank you,
Andy Orahood
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: For an xref, Author mode shows href instead of keyref
Hello,
We have reproduced this, Author does indeed prefer the href from the xref instead of the keyref.
So, would you like to see the keyref("document") or the topic and id that the keyref is pointing to?
e.g. if you have the keydef:
<keydef href="mydoc.dita#id" keys="document"/>
would you like the Author to show you *mydoc.dita#id* or is *document*(the keyref) enough?
Regards,
Adrian
We have reproduced this, Author does indeed prefer the href from the xref instead of the keyref.
So, would you like to see the keyref("document") or the topic and id that the keyref is pointing to?
e.g. if you have the keydef:
<keydef href="mydoc.dita#id" keys="document"/>
would you like the Author to show you *mydoc.dita#id* or is *document*(the keyref) enough?
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 2879
- Joined: Tue May 17, 2005 4:01 pm
Re: For an xref, Author mode shows href instead of keyref
Hi,
Yes, I've logged this to our issue tracking tool and included your comments. It will be analyzed and resolved in a future version.
Regards,
Adrian
Yes, I've logged this to our issue tracking tool and included your comments. It will be analyzed and resolved in a future version.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
-
- Posts: 13
- Joined: Thu May 26, 2011 2:50 am
Re: For an xref, Author mode shows href instead of keyref
Thank you. Will you update this thread or will I just have to look through the changelogs?
adrian wrote:Hi,
Yes, I've logged this to our issue tracking tool and included your comments. It will be analyzed and resolved in a future version.
Regards,
Adrian
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: For an xref, Author mode shows href instead of keyref
Yes, when this issue will be solved we will update this forum entry. FWIW the internal issue number is EXM-21733.
Best Regards,
George
Best Regards,
George
George Cristian Bina
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: For an xref, Author mode shows href instead of keyref
Hi Andy,
In Oxygen 13.1 which will be released in a couple of weeks if an element has both keyref and href, only the keyref will be presented (even if invalid). It is slightly better than the current behavior as the keyref is preferred for navigation according to the specs.
The behavior which you desire (presenting the keyref if the key is valid otherwise present the href) is quite hard to implement as the key might become valid after some modifications in the DITA Map and the edited topic would have to automatically reload and show the keyref instead of the href. But we'll see what we can do in a future version.
Regards,
Radu
In Oxygen 13.1 which will be released in a couple of weeks if an element has both keyref and href, only the keyref will be presented (even if invalid). It is slightly better than the current behavior as the keyref is preferred for navigation according to the specs.
The behavior which you desire (presenting the keyref if the key is valid otherwise present the href) is quite hard to implement as the key might become valid after some modifications in the DITA Map and the edited topic would have to automatically reload and show the keyref instead of the href. But we'll see what we can do in a future version.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service