Namespace Declaration - Adobe 65030365 - FrameMaker - PC Developer's Manual

Structure application developer's guide
Hide thumbs Also See for 65030365 - FrameMaker - PC:
Table of Contents

Advertisement

5
The XML and FrameMaker
Before building a structure application that is designed to work with XML, you should
understand the specific differences between XML and the FrameMaker document model.
For a discussion about markup in general, see Chapter 3, "A General Comparison of
Markup and FrameMaker Documents."

Namespace declaration

FrameMaker supports the use of namespace declarations in XML. A namespace can be
declared as an element attribute in the DTD, or it can be declared in a given element within
the document instance.
FrameMaker does not require you to declare namespace attributes in the EDD.
In FrameMaker you can enable or disable namespaces in the XML structured application.
To see namespace information, you can choose Element > Namespaces to display the
NameSpaces dialog box. Or namespace information may appear in the structure view
elements that declare namespaces. The display of namespace information in FrameMaker
depends on whether namespaces are enabled, as well as how the namespaces are
declared in the DTD.
For a structure application with namespaces enabled:
When a namespace is declared in an element but not in the DTD, the namespace
information appears in the Namespaces dialog box. The structure view shows an asterisk
for the element that has the namespace declaration.
When a namespace is declared in an element and is also declared in the DTD, the
namespace information appears in the Namespaces dialog box. The structure view
shows the namespace as a valid element attribute with no value. The structure view also
shows an asterisk for the element.
When a namespace is declared in the DTD, but is not declared in any element, the
structure view shows the namespace as a valid attribute with no value.
For a structure application with namespaces disabled:
When a namespace is declared in an element but not in the DTD, the structure view
shows the namespace as an invalid attribute, with the URI as the attribute value.
When a namespace is declared in an element and is also declared in the DTD, the
structure view shows the namespace as a valid attribute, with the URI as the attribute
value.
Structure Application Developer's Guide
Models5
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Framemaker 7.1

Table of Contents