- From: John Sharp <jsharp@ti.com>
- Date: Fri, 12 Sep 2003 11:15:30 -0500
- To: xmlschema-dev@w3.org
Thanks, I have moved to the Xerces-2_5_0 parser. However, I still have a problem. I think its something to do with my not declaring a targetnamespace in the first document. I'm getting errors from the validator complaining :- WARNING:Parser:src-resolve: Cannot resolve the name 'Common.RootAttributes' to a(n) 'attribute group' component. Is it possible to include a no namespace file from a no namespace schema ? Long explanation of problem follows... I have a schema file ==================== <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation>Schema For PatternTable</xsd:documentation> </xsd:annotation> <xsd:include schemaLocation="commonTypes.xsd"/> <xsd:element name="PatternsTable"> <xsd:complexType> <xsd:sequence> <xsd:element name="Pattern" type="PatternType" minOccurs="1" maxOccurs="unbounded"/> </xsd:sequence> <xsd:attributeGroup ref="Common.RootAttributes"/> </xsd:complexType> </xsd:element> <!-- deleted the PatternType block for space --> </xsd:schema> And my "commonTypes.xsd" to be included looks like this:- ========================================================= <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation>Common schema type definitions for Jazz</xsd:documentation> </xsd:annotation> <xsd:attributeGroup name="Common.RootAttributes"> <xsd:attribute name="version" type="Common.VersionType" use="required"/> <xsd:attribute name="createdOn" type="xsd:dateTime" use="required"/> <xsd:attribute name="createdBy" type="xsd:string" use="required"/> <xsd:attribute name="currentBaseUnits" type="xsd:string" use="optional"/> <xsd:attribute name="frequencyBaseUnits" type="xsd:string" use="optional"/> <xsd:attribute name="resistanceBaseUnits" type="xsd:string" use="optional"/> <xsd:attribute name="timingBaseUnits" type="xsd:string" use="optional"/> <xsd:attribute name="voltageBaseUnits" type="xsd:string" use="optional"/> </xsd:attributeGroup> </xsd:simpleType> </xsd:schema> My XMLs do not declare any namespace ===================================== <?xml version="1.0" encoding="UTF-8"?> <PatternsTable createdBy="/vobs/ASP/jazz/release/perl/Jazz/Merger/timingMerge.pm" createdOn="2003-09-11T13:12:12" currentBase Units="nA" frequencyBaseUnits="Hz" resistanceBaseUnits="Ohm" timingBaseUnits="ps" version="1.0.0" voltageBaseUnits="uV"> <Pattern> <TDLfileBaseName>adfe0120-czbe0210.tdl</TDLfileBaseName> <HasScan>FALSE</HasScan> <TDLpath>/vobs/ASP/jazz/test/demo/zeno/tdls</TDLpath> <JazzList name="PatternTypes"> <Item>FUNC_AC</Item> </JazzList> <PatternSetName>FUNC_AC_2003</PatternSetName> <NativePatternName>FUNC_AC_2003</NativePatternName> <NativePatternPath>/vobs/ASP/jazz/test/demo/zeno</NativePatternPath> <DPMpatternName>FUNC_AC_2003_DPM</DPMpatternName> <DPMstartLabel>FUNC_AC_2003_st</DPMstartLabel> <DPMendLabel>FUNC_AC_2003_end</DPMendLabel> <CPMpatternName>FUNC_AC_2003_CPM</CPMpatternName> <CPMstartLabel>FUNC_AC_2003_st</CPMstartLabel> <CPMendLabel>FUNC_AC_2003_end</CPMendLabel> <ASICtest> </ASICtest> </Pattern> </PatternsTable> It does not complain that I can't find the commonTypes.xsd file. John. "Henry S. Thompson" wrote: > > Anli Shundi <ashundi@tibco.com> writes: > > > check your validator (or update to another one) > > the location in > > > > <xsd:include schemaLocation="commonTypes.xsd"/> > > > > --while only a hint-- is relative to the including document > > and has nothing to do with the location of validator itself. > > Also it is open to validators to implement xml:base, in which case an > alternative to the schema document's URI can be provided as the base > for resolving relative URI references given as schema locations. > > ht > -- > Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh > Half-time member of W3C Team > 2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440 > Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk > URL: http://www.ltg.ed.ac.uk/~ht/ > [mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Friday, 12 September 2003 12:15:37 UTC