Having an issue with keys in some bookmeta elements of bookmaps
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 37
- Joined: Tue Oct 15, 2013 11:35 pm
Having an issue with keys in some bookmeta elements of bookmaps
I recently started using conkeyrefs for some of our variable terms.
I am now trying to use them for some bookmeta content in bookmaps, but ran into an issue.
It seems like you cannot use them in the and elements.
Is there a solution or workaround to this?
I tried conrefs, but they are not allowed either.
Thanks
BG66
I am now trying to use them for some bookmeta content in bookmaps, but ran into an issue.
It seems like you cannot use them in the
Code: Select all
<postalcode>
Code: Select all
<contactnumber>
Is there a solution or workaround to this?
I tried conrefs, but they are not allowed either.
Thanks
BG66
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Having an issue with keys in some bookmeta elements of bookmaps
Hi,
I tried to validate with both the DITA 1.2 DTDs and the DITA 1.3 DTDs a bookmap structure like this:
and the @conkeyref attribute seemed to be allowed on both postalcode and contactnumber.
Are you using a specialization of the DITA standard?
Could you give me an example with how your DITA Map looks like?
Regards,
Radu
I tried to validate with both the DITA 1.2 DTDs and the DITA 1.3 DTDs a bookmap structure like this:
Code: Select all
<bookmap id="taskbook">
<booktitle>
<booklibrary>Retro Tools</booklibrary>
<mainbooktitle>Product tasks</mainbooktitle>
<booktitlealt>Tasks and what they can do</booktitlealt>
</booktitle>
<bookmeta>
<author>Howe Tuduit</author>
<authorinformation>
<organizationinfo>
<addressdetails><locality><postalcode conkeyref="..."/></locality></addressdetails>
<contactnumbers>
<contactnumber conkeyref="..."/>
</contactnumbers>
</organizationinfo>
</authorinformation>
Are you using a specialization of the DITA standard?
Could you give me an example with how your DITA Map looks like?
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 37
- Joined: Tue Oct 15, 2013 11:35 pm
Re: Having an issue with keys in some bookmeta elements of bookmaps
Radu,
We may have some customization's, will have to check that.
The problem may be the way we are using the conkyref's.
We are inserting a <term> element to the <postalcode> element, where it looks like you are adding the conkeyref to the <postalcode> element.
When I try your method, I get a
We may have some customization's, will have to check that.
The problem may be the way we are using the conkyref's.
We are inserting a <term> element to the <postalcode> element, where it looks like you are adding the conkeyref to the <postalcode> element.
When I try your method, I get a
error message.Conref was not expanded
Here is our code:The source element "postalcode" with class value "+ topic/ph xnal-d/postalcode " is not a generalization of target element "term" with class value "- topic/term "
Code: Select all
<bookmeta>
<authorinformation>
<organizationinfo>
<namedetails>
<organizationnamedetails>
<organizationname><term
conkeyref="r_brandnames_variables/ph_organizationname"
/></organizationname>
</organizationnamedetails>
</namedetails>
<addressdetails>
<thoroughfare><term conkeyref="r_brandnames_variables/ph_thoroughfare"
/></thoroughfare>
<locality>
<localityname><term conkeyref="r_brandnames_variables/ph_localityname"/>
</localityname>
<postalcode>12345</postalcode>
</locality>
<administrativearea><term
conkeyref="r_brandnames_variables/ph_administrativearea"/>
</administrativearea>
</addressdetails>
-
- Posts: 9446
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Having an issue with keys in some bookmeta elements of bookmaps
Hi,
Thanks for the details.
Actually the particular error message you receive means that you have a postalcode element with a conkeyref which points to a term element located in another topic. These elements are not compatible. You cannot make a conkeyref from "term" to "postalcode" or from "postalcode" to "term".
Usually with DITA you can make a conkeyref or conref from one type element to the same type of element. So you can make a conref from a <term> to a <term>. You can also make a conref from a generalization of an element to a particularization of an element. So you can make a conref for example from a <ph> element to a <b> element. The <ph> element has the DITA class - topic/ph and <b> has the class + topic/ph hi-d/b meaning that bold is a specialization of phrase so you can conref from phrase to bold.
Regards,
Radu
Thanks for the details.
Actually the particular error message you receive means that you have a postalcode element with a conkeyref which points to a term element located in another topic. These elements are not compatible. You cannot make a conkeyref from "term" to "postalcode" or from "postalcode" to "term".
Usually with DITA you can make a conkeyref or conref from one type element to the same type of element. So you can make a conref from a <term> to a <term>. You can also make a conref from a generalization of an element to a particularization of an element. So you can make a conref for example from a <ph> element to a <b> element. The <ph> element has the DITA class - topic/ph and <b> has the class + topic/ph hi-d/b meaning that bold is a specialization of phrase so you can conref from phrase to bold.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 37
- Joined: Tue Oct 15, 2013 11:35 pm
Re: Having an issue with keys in some bookmeta elements of bookmaps
Thanks Radu!
I was not able to get it to work with a conkeyref on the postalcode element, but did get it to work by inserting a <keyword> element inside the <postalcode> element.
I applied the conkeyref to the <keyword> element.
BG66
I was not able to get it to work with a conkeyref on the postalcode element, but did get it to work by inserting a <keyword> element inside the <postalcode> element.
I applied the conkeyref to the <keyword> element.
BG66
Return to “DITA (Editing and Publishing DITA Content)”
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