[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: TR9401 catalogue resolver

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • Date: Tue, 9 Oct 2012 17:03:37 -0400

Re:  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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.