external id references



I am working with a schema that uses xsd:ID to tag certain elements.
The corresponding elements that reference these elements use xsd:IDREF.
Now, this works as long as the ID is defined in the same document,
otherwise schema validation fails.
Is there any way for elements in one xml document reference elements in
another
For a trivial example, consider a document called "app.xml"

<properties name="ID001">
<property>
<name>foo</name>
<value>111</value>
</property>
<property>
<name>bar</name>
<value>222</value>
</property>
</properties>
<appContext>
<propertyRef id="ID001"/>
</appContext>

If all <properties> were externalized into a separate xml document (say
"props.xml") and the original "app.xml" is reduced to

<appContext>
<propertyRef id="ID001"/>
</appContext>

URI references is one option but assume they cannot be used, is there
any way to have a xml schema such that the above xml snippet is valid?
Is there any other way of tagging the id reference, say
<propertyRef id="props.xml#ID001"/> ?

thanks,
Srikant

.



Relevant Pages

  • Re: Simple XML & XSD Question
    ... that are all supposed to conform to a schema. ... > include a reference to the XSD in the XML document, ... validating parser will validate the document against that schema. ...
    (microsoft.public.dotnet.xml)
  • Re: invoke a webservice with nillable value types
    ... generate the assembly for your schema one time, ... service add a reference to the assembly we created above in XsdObjectGen. ... >It is supported to supress serialization of properties using the ... FindBDImplService failed with the error "File- or Assemblyname ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: GUID return - mapping issues in orchestrations
    ... I tried out your web service. ... creates the reference schemas. ... If you look at the imports on reference.xsd it imports the ... I deleted this import and added another referencing the reference1.xsd schema. ...
    (microsoft.public.biztalk.general)
  • Re: BizTalk 2004 - Problem Using Schemas from Referenced Assemblies
    ... Hi Patrick, finally got some information back on this. ... create a schema that does not reference the external schemas. ... Larry Franks ...
    (microsoft.public.biztalk.general)
  • Re: Policy Configuration: Cant enter parameters?
    ... The probable reason is that the reference to the XML schema in the Rules ... Composer does not include the fully qualified name. ... the parameters grid does not allow parameter ...
    (microsoft.public.biztalk.general)