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


Help: OASIS Mailing Lists Help | MarkMail Help



   schema datatype for ip address

[ Lists Home | Date Index | Thread Index ]
  • To: xml-dev@lists.xml.org
  • Subject: schema datatype for ip address
  • From: "Rakshan Murthy" <rakshanm@hotmail.com>
  • Date: Thu, 02 Feb 2006 04:23:11 -0600
  • Bcc:
  • In-reply-to: <1138875371.16760.ezmlm@lists.xml.org>


Im trying to create a schema for the following:

<ip type="start"></ip>

Basically, a complexType with a 'type' attribute of string, and a content 
which is a restricted pattern.

I keep getting validation errors from

when i try :
  <xs:complexType name="ip">
   <xs:restriction base="xs:string">
   <xs:attribute name="type" type="xs:string" use="optional" />

If i use complexContent, it doesnt allow use of patters to restrict.
Anyone have a solution?



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

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