XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] TR9401 catalogue resolver

G. Ken Holman scripsit:

> Does anyone know of an XML catalogue resolver implementation that
> supports the TR9401 <doctype/> element?

I forgot to mention that you can get much the same effect by using
the catalogue to define an external parsed entity referred to in an
internal DTD, which is what $EMPLOYER is doing now to parameterize a
RELAX NG schema on a namespace (one of the few ways you can't natively
parameterize them).  Here's the idea:

<?xml version="1.0"?>
<!DOCTYPE [[
  <!ENTITY target-ns-def SYSTEM "urn:target-namespace">
  &target-ns-def;
]]>
<grammar xmlns="http://relaxng.org/ns/structure/1.0";
         xmlns:target="&target-ns;">
  <define name="target.foo">
    <element name="target:foo">
      ...
    </element>
  </define>
 ....
</grammar>

The catalog tells us which file "urn:target-namespace" maps to, and that
file contains "<!ENTITY target-ns "http://example.com/namespace/foo1";>;
other files mapped by other catalogs contain "<!ENTITY target-ns
"http://example.com/namespace/foo2";>.

-- 
John Cowan  <cowan@ccil.org>  http://www.ccil.org/~cowan
        Raffiniert ist der Herrgott, aber boshaft ist er nicht.
                --Albert Einstein


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS