You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Owen Roberts <or...@baltimore.com> on 2000/07/14 13:32:39 UTC
namespace problem
Hi -
I'm having a problem with namespaces:
Unknown element 'dsig:Signature'
where DTD is :
<!ELEMENT Signature (SignedInfo, SignatureValue, KeyInfo?, Object*) >
<!ATTLIST Signature
xmlns CDATA #FIXED 'http://www.w3.org/2000/02/xmldsig#'
Id ID #IMPLIED >
and
XML is
<dsig:Signature xmlns:dsig = "http:etc...
it doesn't like the first element having the namespace in front of it...
this xml/dtd should be correct by the namespace standard...
any ideas?workarounds?what_i_did_wrong?
im using the ibm version xml4csrc3_1_0 on NT4
XML4C version 3.1.0 incorporates Xerces-C version 1.1.0 which is made
available under the Apache License.
Thnaks very much,
OWen
--
Owen Roberts
Toolkits Architect
Baltimore Technologies, Dublin
oroberts@baltimore.com
(+3531) 647 7430
personal webspace @
http://www.owen.utvinternet.com/
Re: namespace problem
Posted by Juergen Hermann <jh...@webde-ag.de>.
On Fri, 14 Jul 2000 12:32:39 +0100, Owen Roberts wrote:
>this xml/dtd should be correct by the namespace standard...
No, it's not, since DTDs are part of XML 1.0 which _predates_
the namespace standard. So you have 3 choices: no validation,
using schemas (but there is lack of support currently), or
using fixed prefixes in you DTD.
The 3rd is the usual path taken.
Ciao, Jürgen
--
Jürgen Hermann (jhe@webde-ag.de)
WEB.DE AG, Amalienbadstr.41, D-76227 Karlsruhe
Tel.: 0721/94329-0, Fax: 0721/94329-22