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

Re: Namespace: what's the correct usage?

  • From: Eddie Robertsson <eddie@a...>
  • To: francis@r...
  • Date: Tue, 29 May 2001 10:10:52 +1000

correct usage
Martin already replied with the correct analysis of the problem so I'll skip
that part. I think the reason you get an error from XSV is that you don't supply
the birthday.xsd schema. If you call xsv with:

C:\xml>xsv friend.xml friend.xsd birthday.xsd

you should get the correct error messages.

It is strange though that your result from XSV says that validation was STRICT.
In my opinion it should be LAX since it can't find the declarations in the
birthday schema.

Cheers,
/Eddie


> C:\xml>xsv friend.xml friend.xsd
> <?xml version='1.0'?>
> <xsv docElt='{http://redrice.com/friends}friend' instanceAssessed='true'
> instanceErrors='0' rootType
> ='[Anonymous]' schemaDocs='friend.xsd' schemaErrors='0' schemaLocs=''
> target='file:/C:/xml/friend.xm
> l' validation='strict' version='XSV 1.180/1.88 of 2001/03/17 12:11:13'
> xmlns='http://www.w3.org/2000
> /05/xsv'/>
>
> C:\xml>msxsd-sch friend.xml friend.xsd
> Error loading friend.xml
> Code: -1072898035
> Source:                 <person>fred</person>
> Line: 4
> Error: The element 'person' is used but not declared in the DTD/Schema.
>
> C:\xml>
> ---
>
> in other words, xsv says fine but msxml4 says not. From the spec I
> assume that the restrictions apply in the normal content model manner,
> so that xsv is correct, but I find it somewhat uncertain.
>
> Francis.
>
> ------------------------------------------------------------------
> The xml-dev list is sponsored by XML.org, an initiative of OASIS
> <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@l...


PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.