[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Namespace declaration and schema validation problems

  • To: <xml-dev@l...>
  • Subject: Namespace declaration and schema validation problems
  • From: "Noelle" <ng302@s...>
  • Date: Wed, 27 Aug 2003 10:42:11 +0100

schema validation namespace

I've tried to find something on-line that clearly addresses the two problems
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
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.



Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.

Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.