[XML-SIG] a small question

Michael Sobolev mss@transas.com
Sun, 6 Sep 1998 23:46:28 +0400


OK.  My document looks like:

<?xml version="1.0"?>
<!DOCTYPE info SYSTEM "my.dtd">
<info>
    ...
</info>

my.dtd:

<!ENTITY % common.decl SYSTEM "common.mod">

<!-- other similar declarations -->

%common.decl;

common.mod:

> >     <!ENTITY % lang.params "lang   CDATA #REQUIRED">
> >     <!ELEMENT comment (#PCDATA)>
> >     <!ATTLIST comment
> >         %lang.params;>

What I get:

/home/mss/xml/common.mod:8:5: Didn't match [A-Za-z_:][\-A-Za-z_:.0-9]*
/home/mss/xml/common.mod:8:5: Whitespace expected here
/home/mss/xml/common.mod:8:5: Expected type or alternative list
/home/mss/xml/common.mod:16:5: Didn't match [A-Za-z_:][\-A-Za-z_:.0-9]*
/home/mss/xml/common.mod:16:5: Whitespace expected here
/home/mss/xml/common.mod:16:5: Expected type or alternative list
/home/mss/xml/common.mod:22:5: Didn't match [A-Za-z_:][\-A-Za-z_:.0-9]*
/home/mss/xml/common.mod:22:5: Whitespace expected here
/home/mss/xml/common.mod:22:5: Expected type or alternative list
/home/mss/xml/other.mod:15:5: Didn't match [A-Za-z_:][\-A-Za-z_:.0-9]*
/home/mss/xml/other.mod:15:5: Whitespace expected here
/home/mss/xml/other.mod:15:5: Expected type or alternative list
info.xml:7:22: Unknown attribute 'lang'

Where common.mod:8:5 is for first %lang.params;.

Is it correct usage?

--
Mike