When trang encounters an external reference, its present behavior is to
follow the reference and convert that also. From the point of view of
rng <--> rnc conversion, this behavior causes a number of problems:
* precludes reference of one file type from another - I often want
to reference an rng file from an rnc file. Assuming that I will ultimately
convert the rnc to rng format, this makes perfect sense. But since trang
can only handle one input format at a time, this fails.
* precludes use of XML catalog - trang is trying to dereference remote
HTTP resources, yet does not know about the XML catalog
* causes redundant conversions - if several schemas files access a
"common.rnc" file, that file will be converted once for each converted
schema
* loss of remote reference - when an external reference is a remote
resource, such as an HTTP resource, trang immediately converts it and
stores the result to a local file. The converted schema is no longer
using the remote resource.
What I would like is an option to only convert the given file, and to
treat the URL's of external references as opaque. For example, just
convert the following rnc:
Foo = "http://example.net/2004/02/foo.rng"
to this rng:
<define name="Foo">
<externalRef href="http://example.net/2004/02/foo.rng"/>
</define>
without trying to open or convert the URL. Maybe this only makes sense
in the case of rnc <--> rng conversion.
--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Hello,
John V. Belmonte, le Mon 09 Aug 2004 22:30:44 -0400, a écrit :
> When trang encounters an external reference, its present behavior is to
> follow the reference and convert that also.
It seems that in the newer version it doesn't any more.
> For example, just convert the following rnc:
>
> Foo = "http://example.net/2004/02/foo.rng"
>
> to this rng:
>
> <define name="Foo">
> <externalRef href="http://example.net/2004/02/foo.rng"/>
> </define>
>
> without trying to open or convert the URL.
I'm getting
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns="http://relaxng.org/ns/structure/1.0">
<define name="Foo">
<value>http://example.net/2004/02/foo.rng</value>
</define>
</grammar>
I guess it should be fine?
Samuel