Documentation Center

Configuring AppData for XML namespace and schema

The required root element attributes must be specified in AppData. These indicate which schema is to be used as well as defining the namespaces that are used in the document.

This configuration is done for each Document Type that requires it—sometimes there is no namespace definition required because no specific namespace is used by the document type.

The configuration can be done for user Global or for specific users. The schema location may vary per client machine and not all editors support the use of catalog files to locate schemas.

Example: AppData for schema and namespace support

The following shows a configuration for all users under {Global} and a specific one for the user, {Mark}. SDL Contenta checks for user-specific AppData settings and if found, uses them. If a user-specific AppData setting is not found, the AppData defined for the Global user is used.

UserKeysValue nameValue data
{Global}\Document Types\BookROOT_ATTRSxsi:noNamespaceSchemaLocation="C:\Schema\book.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
{Global}\Document Types\BookXMLDECL<?xml version="1.0" encode=”<?xml version="1.0" encode="utf-8" standalone="no"?>
{Mark}\Document Types\BookROOT_ATTRSxsi:noNamespaceSchemaLocation="D:\schemas\book.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance"
{Global}\Document Types\MilXMLDECL<?xml version="1.0" encode=”<?xml version="1.0" encode="utf-8"standalone="no"?>
{Mark}\Document Types\MilROOT_ATTRSxmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sdl.com/mil D:\schema\army\milarmy.xsd" xmlns:mil="http://www.sdl.com/mil" xmlns:army="http://www.sdl.com/army"
{Global}\Document Types\MilPUBID"-//ArborText//DTD docmilspec//EN"

Notice that for \Document Types\Mil, a PUBID was also configured. Sometimes even when a schema issued for validation, a DTD is still required for the convenience of using entities in the document.