Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Attribute declaration, invalid schema

From: "pstachy" <pstachy@-----.--->
To: NULL
Date: 11/5/2006 6:36:00 AM

Hi all,
I've got this problem declaring attribute for the element. W3C
Validator doesn't find this ok. I really dont know how to declare the
attribute for the tag which has simle content(doesn't have other tags
in itself). In this case:

<price curr="PLN">12.30</price>

My Schema for that:

<xs:element name="price">
        <xs:complexType>
         <xs:simpleContent>
                <xs:restriction base="xs:decimal">
                        <xs:minInclusive value="0" />
                        <xs:fractionDigits value="2" />
                </xs:restriction>

                </xs:simpleContent>

                   <xs:attribute name="curr" use="required"
type="xs:string"
fixed="PLN" />

        </xs:complexType>
</xs:element>

Please, tell me what is wrong. Thx:)



transparent
Print
Mail
Digg
delicious
Disclaimer
.

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.

.
.

transparent

transparent