W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2003

Re: include search path

From: John Sharp <jsharp@ti.com>
Date: Fri, 12 Sep 2003 11:15:30 -0500
Message-ID: <3F61F122.285B30C3@ti.com>
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:documentation>Schema For PatternTable</xsd:documentation>

<xsd:include schemaLocation="commonTypes.xsd"/>

<xsd:element name="PatternsTable">
      <xsd:element name="Pattern" type="PatternType" minOccurs="1" maxOccurs="unbounded"/>
    <xsd:attributeGroup ref="Common.RootAttributes"/>

<!-- deleted the PatternType block for space -->


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:documentation>Common schema type definitions for Jazz</xsd:documentation>
<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"/>



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">
    <JazzList name="PatternTypes">

It does not complain that I can't find the commonTypes.xsd file.


"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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:13 UTC