|Atomik Xport SE: Reference > Chapter 13 Extracting Hyperlinks||<< >>|
Atomik Xport SE uses the XHTML element ‘a’ to define both anchors and hyperlinks. To extract either you need to include the ‘a‘ element declaration in your DTD, and further, make it part of the content model in whatever context you are likely to encounter a hyperlink or an anchor.
<!ELEMENT a (#PCDATA)>
Note: the ‘a’ element must be defined as #PCDATA and cannot have child elements. Note also, you can use the pre-XHTML attribute ‘name’ as a substitute for ‘id’.
So, if you expect to find hyperlinks and anchors in your Paragraph element you would include the ‘a’ element in the Paragraph content model, for example:
<!ELEMENT Paragraph (#PCDATA | B | I | a)*>
The hyperlink’s URL (Universal Resource Locator) is stored in the ‘href’ attribute, while a unique anchor name is stored in the ‘id’ (or name) attribute.
If the hyperlink or anchor on your InDesign page is not valid in the XML context in which it is encountered, then it will simply be treated as regular text.