Pages: 1
Print
Author Topic: How to add an attribute called "target" to the "xref" element in XMetal 5.1+DITA  (Read 3603 times)
santhoshkumarr
Member

Posts: 7



« on: November 17, 2009, 10:38:26 AM »

While working on XMetal 5.1 with DITA, I found that there was no "target" attribute in the Attribute Inspector for the "XREF" element.

Could somebody help me on how to fix this ASAP?
All I need is an attribute called "target" to appear in the Attribute Inspector window, when I insert an "xref" element.

Warm Regards,
Santhosh
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2621



WWW
« Reply #1 on: November 17, 2009, 05:22:55 PM »

The reason this attribute is not listed in the Attribute Inspector is because the <xref> element does not have this attribute (the DITA DTDs do not define/declare it). Perhaps you are confusing "target" with the attribute called "href? The DITA Language Reference uses the term "target" to refer to the content that the href points to or links to (ie: the target).

If you really need this attribute, and depending on your exact needs, you may be able to do what you need by specializing the DITA DTDs. In particular, by doing a "domain attribute specialization". DITA 1.1 has been specifically designed for this and XMetaL Author supports this.

We do not have any tools that will aid you in making a specialized DTD (there are none in existence anywhere at this time that I know of), however, the following will help you both decide if you need to specialize and how it must be done.
http://docs.oasis-open.org/dita/v1.1/OS/archspec/ditaspecialization.html

That document just defines the rules for how a specialization must be done, it is not a step by step guide. However, Eliot Kimber's tutorial, which is very well written and explains things in an easy to read fashion, does provide step by step instructions:
http://www.xiruss.org/tutorials/dita-specialization/

I would read his entire tutorial (it is not too long) but the specific sections you will want to read at a minimum are titled "The Types of Specialization" and "Domain Attribute Specialization Tutorial".

The following may also help you decide if specialization is really important for you at this point (though it sounds like you may have already decided you have a very specific need for a special attribute to be added for whatever reason):
http://dita.xml.org/wiki/level-three-specialization-and-customization
http://dita.xml.org/wiki/introduction-to-the-maturity-model

Once you have a specialized DITA DTD you will want to read the sections in the XMetaL Author Enterprise help that deal with specializations. XMetaL Author Enterprise 5.5 must be configured to recognize your specialized DTD as being a DTD it should associate with its DITA editing functionality.

You should also probably check that the DITA Open Toolkit will be able to support what you need to do (if this attribute is an important part of producing output). If you use the DITA OT that is installed and configured with XMetaL Author Enterprise 5.5, its version is 1.4.2.

Or perhaps I'm way off and you mean something else entirely? If so, please provide more detail.
« Last Edit: November 17, 2009, 05:41:41 PM by Derek Read » Logged
Pages: 1
Print
Jump to: