Atomik Xport SE: Reference > Chapter 14 Extracting Hyperlinks << >>

14.1 The hyperlink/anchor element declaration

Atomik Xport SE uses the XHTML element ‘a’ to define both anchors and hyperlinks. To extract either you need to include the 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)> 
<!ATTLIST a
href CDATA #IMPLIED
name CDATA #IMPLIED
>

Note: the ‘a’ element must be defined as #PCDATA and cannot have child elements.

So, if you expect to find hyperlinks and anchors in your Paragraph element you would include it in Paragraph content model, for example:

<!ELEMENT Paragraph (#PCDATA | B | I | a)*> 

The hyperlink URL (Universal Resource Locator) is stored in the href attribute, while an anchor name is stored in the name attribute.

If the hyperlink or anchor on your QuarkXPress page is not valid in the context in which it is encountered, then it will simply be treated as regular text.