Search found 2 matches

by avaspell
Wed Jul 16, 2008 1:16 am
Forum: XML Schemas
Topic: RelaxNG and XInclude not validating correctly
Replies: 2
Views: 3527

Re: RelaxNG and XInclude not validating correctly

I figured it out. When the parser includes the referenced document, it uses the namespace in the included document, not the parent. Since I was defining a namespace in the parent, but not in the child, the parser was inserting a namespace declaration of "", and so the RelaxNG schema was pr...
by avaspell
Tue Jul 15, 2008 9:37 pm
Forum: XML Schemas
Topic: RelaxNG and XInclude not validating correctly
Replies: 2
Views: 3527

RelaxNG and XInclude not validating correctly

I have a document that I'm validating against a RelaxNG schema, and whenever I have a document that uses an XInclude to reference another entity, the validation fails complaining that the element that I'm referencing is not allowed in this context. However, if I paste the element inline and remove t...