[xml] Re: Element 'group' in xmlcatalog



Daniel Veillard wrote:
On Wed, Sep 18, 2002 at 09:21:22PM +0400, Vitaly Ostanin wrote:

Hello, All!

Feature request:

Please, add params in xmlcatalog for element 'group':
http://www.oasis-open.org/committees/entity/spec.html#s.group

  group is supported as far as I know. If you have a bug
provide the input exposing the bug !
    http://xmlsoft.org/bugs.html

Please, tell me, how I can to add catalog entries within element 'group' with application 'xmlcatalog' ?

In some cases attribute 'prefer' very usable.

  ???

Sorry for my bad English. In some cases I need to specify 'group' elements with attribute 'prefer' in catalog. But I not found info about this functions in documentation for application 'xmlcatalog'.

BTW, without 'prefer' resolver uses elements 'system', for what ?

  ???

Sorry, this is my bug.

I use delegating to my catalog file, report attached.

With 'delegatePublic' and 'delegateSystem' (1) in the main catalog rewriting rule from my catalog is worked.

With 'delegatePublic' and without 'delegateSystem' (2) in the main catalog rewriting rule from my catalog is NOT worked.

Please, help me - where is error ?

Thanks.

<skipped>

--
Regards, Vyt
mailto:  vyt vzljot ru
JID:     vyt vzljot ru
1. With 'delegateSystem' rewriting rule is used.

$ cat /home/vyt/devel/xml/catalog.xml
-------
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" 
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <delegatePublic publicIdStartString="-//ALTLINUX//" 
catalog="file:///home/vyt/devel/xml/altlinux/catalog.xml"/>
  <delegateSystem systemIdStartString="http://docs.altlinux.ru"; 
catalog="file:///home/vyt/devel/xml/altlinux/catalog.xml"/>
</catalog>
-------

$ /home/vyt/devel/xml/test/test.sh 
-------
Resolve: pubID -//ALTLINUX//ENTITIES Common Documentation//RU
0 Parsing catalog /home/vyt/devel/xml/catalog.xml
/home/vyt/devel/xml/catalog.xml added to file hash
file:///home/vyt/devel/xml/altlinux/catalog.xml not found in file hash
0 Parsing catalog file:///home/vyt/devel/xml/altlinux/catalog.xml
file:///home/vyt/devel/xml/altlinux/catalog.xml added to file hash
Trying system delegate file:///home/vyt/devel/xml/altlinux/catalog.xml
Using rewriting rule http://docs.altlinux.ru/ru
^^^^^^^^^^^^^^^^^^^^
Resolve: pubID -//OASIS//DTD DocBook XML V4.2//EN
Resolve URI http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
.......
-------


2. Without 'delegateSystem' rewriting rule is NOT used.

$ cat /home/vyt/devel/xml/catalog.xml
-------
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" 
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <delegatePublic publicIdStartString="-//ALTLINUX//" 
catalog="file:///home/vyt/devel/xml/altlinux/catalog.xml"/>
</catalog>
-------


$ /home/vyt/devel/xml/test/test.sh 
-------
Resolve: pubID -//ALTLINUX//ENTITIES Common Documentation//RU
0 Parsing catalog /home/vyt/devel/xml/catalog.xml
/home/vyt/devel/xml/catalog.xml added to file hash
file:///home/vyt/devel/xml/altlinux/catalog.xml not found in file hash
0 Parsing catalog file:///home/vyt/devel/xml/altlinux/catalog.xml
file:///home/vyt/devel/xml/altlinux/catalog.xml added to file hash
Trying public delegate file:///home/vyt/devel/xml/altlinux/catalog.xml
?????????????????????????
Resolve URI http://docs.altlinux.ru/ru/entities/common.ent
Resolve: pubID -//OASIS//DTD DocBook XML V4.2//EN
Resolve URI http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd
.......
-------


Common files:


$ cat /home/vyt/devel/xml/test/test.sh 
-------
#!/bin/sh

export XML_CATALOG_FILES=/home/vyt/devel/xml/catalog.xml
export XML_DEBUG_CATALOG=
xmllint --noout --valid test.xml
-------


$ cat /home/vyt/devel/xml/altlinux/catalog.xml 
-------
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" 
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <rewriteSystem systemIdStartString="http://docs.altlinux.ru/ru"; rewritePrefix="ru"/>
</catalog>
-------

$ cat /home/vyt/devel/xml/test/test.xml 
-------
<?xml version="1.0" encoding="cp1251"?>
<!DOCTYPE para PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                  "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";
[

<!ENTITY % AltlinuxEntities PUBLIC 
"-//ALTLINUX//ENTITIES Common Documentation//RU" 
"http://docs.altlinux.ru/ru/entities/common.ent";>
%AltlinuxEntities;

]>

<para lang="ru">
    Some text
</para>
-------


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]