 |
 |
 |
Hi Bharath,
targetNamespace should not have the namespace prefix. The attributes in XML
schema (and most XML vocabularies) are unqualified. The XML schema schema
does allow attributes from other namespaces, but really shouldn't allow
attributes from the XML schema namespace. libxml looks to be taking a
relaxed interpretation here.
HTH,
Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using XML C++
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ for more info
----- Original Message -----
From: "Bharath Kumar Reddy T" <bharathkr@h...>
To: <xmlschema-dev@w...>
Sent: Wednesday, November 19, 2008 12:16 PM
Subject: doubt regarding targetNamespace
>
>
> Hi..
>
> I have a doubt whether we can give prefix for targetNamespace attribute or
> not.
>
> In the following schema we have xsd prefix for targetNamespace. Is it
> correct or not..........
>
> <?xml version="1.0"?>
>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xsd:targetNamespace="http://foobar">
>
> <xsd:element name="foo"/>
>
> </xsd:schema>
>
>
>
> Altova spy says it is wrong but libxml parser has not given any error when
> this schema is parsed.
>
>
>
> Thank you very much,
>
> Bharath.
>
>
>
> htipl
> HUAWEI TECHNOLOGIES CO.,LTD. huawei_logo
>
>
> Address: Huawei Industrial Base
> Bantian Longgang
> Shenzhen 518129, P.R.China
> www.huawei.com
> ----------------------------------------------------------------------------
> ---------------------------------------------------------
> This e-mail and its attachments contain confidential information from
> HUAWEI, which
> is intended only for the person or entity whose address is listed above.
> Any
> use of the
> information contained herein in any way (including, but not limited to,
> total or partial
> disclosure, reproduction, or dissemination) by persons other than the
> intended
> recipient(s) is prohibited. If you receive this e-mail in error, please
> notify the sender by
> phone or email immediately and delete it!
>
>
>
|
 | 

|  |
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.
|  |
| |
 |
 |
 |