You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Toshihiko Makita <tm...@antenna.co.jp> on 2007/11/01 15:33:52 UTC

Invalid IDREF attribute error

Hello!

I'm using Xercces-J 2.9.1.

I tried to validate the XML document that have two invalid IDREF type
attribute 'xref' elements.

 <para>This is a test.<xref linkend="aaa"/><xref linkend="bbb"/></para>

But Xeces reports only one error.

 'An element with the identifier "bbb" must appear in the document.'

Why Xerces does not report all of the unresolved IDREFs? Is this the
limitation?

Any suggestions are welcome.

Thanks,

Toshihiko Makita




---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Re: Invalid IDREF attribute error

Posted by Michael Glavassevich <mr...@ca.ibm.com>.
Hi Toshihiko,

This is currently a limitation. The class Xerces uses for checking ID/IDREF
is only capable of returning the first IDREF found without a matching ID
value.

Thakns.

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

Toshihiko Makita <tm...@antenna.co.jp> wrote on 11/01/2007 10:33:52 AM:

> Hello!
>
> I'm using Xercces-J 2.9.1.
>
> I tried to validate the XML document that have two invalid IDREF type
> attribute 'xref' elements.
>
>  <para>This is a test.<xref linkend="aaa"/><xref linkend="bbb"/></para>
>
> But Xeces reports only one error.
>
>  'An element with the identifier "bbb" must appear in the document.'
>
> Why Xerces does not report all of the unresolved IDREFs? Is this the
> limitation?
>
> Any suggestions are welcome.
>
> Thanks,
>
> Toshihiko Makita
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org