W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Attribute as well as textvalue

From: Kuberean, Venkatesan (Cognizant) <Venkatk@chn.cognizant.com>
Date: Thu, 11 Oct 2001 17:56:38 +0530
Message-ID: <DDD04F4480FED411AB5D00508BFD7A44D97BD4@CTSINTDLSXUA>
To: xmlschema-dev@w3.org

	<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="catalog">
			<xs:documentation>Comment describing your root
			<xs:element name="book" type="book"
	<xs:complexType name="book">
			<xs:element name="author" type="xs:string"/>
			<xs:element name="title" type="xs:string"/>
			<xs:element name="genre" type="xs:string"/>
			<xs:element name="price" type="xs:float"/>
			<xs:element name="publish_date" type="xs:string"/>
			<xs:element name="description" type="xs:string"/>
			<xs:element name="bar" type="xs:string"/>

	how do i write a code for the author element , that it can hold text
value as well as attribute. Help me to do that as early as possible.

thanks & regards

Received on Thursday, 11 October 2001 16:06:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:53 UTC