OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Namespace declaration and schema validation problems

[ Lists Home | Date Index | Thread Index ]

Hi,

I've tried to find something on-line that clearly addresses the two problems
I've
been having with my XML, but had no luck, so I'm hoping someone here can
clarify these issues for me.

First of all, I have an XML page, which is uses XSLT to transform into XHTML
(with a separate CSS), but it won't render correctly if I include a
namespace declaration in the top level element.  I don't have a prefix for
my elements or attributes, so it's just "xmlns".  The text
of the page displays, but it's completely devoid of any structure or
formatting. Is the namespace declaration just not recognised by the browser
(IE6) or is there something else I should need to add.  Despite having read
up on namespaces, I couldn't find anything to indicate why this is
happening. The web page renders fine without the declaration, so I can use
it without it, but I'd like to know why it won't work with it.

The second problem involves my schema.  Although the schema and XML validate
against each other
when I use a schema validator, the XML doesn't seem to be validating against
the
schema when I use the browser to view it.  Is it necessary to
use a DTD as well as a schema to enforce the structure of the document?  I
would prefer to avoid the DTD since it's less flexible and I had hoped to
design the schema to allow other users to add their own elements later, if
needed (in specific parent elements).  However, I want to make sure that if
someone adds their own XML document that it's valid (I'm using ASP and have
set it up so that new XML sections can be added to the database).

If anyone can offer any clarification on these issues regarding namespace
and schema use when designing XML web pages, I'd very much appreciate it.

-Noelle





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS