How to render <a name="xyz"></a> in DITA?

Having trouble installing Oxygen? Got a bug to report? Post it all here.
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

How to render <a name="xyz"></a> in DITA?

Post by julie »

Hi
I want to use the named anchors within a document for an XHTML output, how is that possible using DITA? i.e. - <a name="xyz"></a>

Regards
Julie
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to render <a name="xyz"></a> in DITA?

Post by sorin_ristache »

Hello,

Element a with attribute name is an XHTML element, not a DITA element. The a element is generated in XHTML output of DITA transformation for DITA elements like link. Can you give an example about how you want to use anchors?


Regards,
Sorin
julie
Posts: 61
Joined: Fri Jun 06, 2008 7:09 am

Re: How to render <a name="xyz"></a> in DITA?

Post by julie »

Hi Sorin
Thanks for the reply.
The requirement is as follows:
I have a page which carries two sections. 1. Creating the application 2. Editing the application. When the user clicks the help icon in the Edit window of the application, the page opens with the Edit section of the page instead of displaying the beginning of the page, ie., the Create section. What DITA element and attribute could do this feature for me?Please help.

Regards
Julie
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: How to render <a name="xyz"></a> in DITA?

Post by sorin_ristache »

Hello,

You can write the two sections as DITA topics or concepts. Elements topic and concept have the attribute id. In XHTML output they have an element a with attribute name. The Help icon in the Edit window can point to these elements a.


Regards,
Sorin
Post Reply