Replies: 1 comment
-
If you have an When parsing a CSDL document using the library's
I'm not sure how this plays out with the xml:base attribute, I don't think it's required. But it's worth a try. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am parsing OData CSDL contract documents using this library. I am struggling to understand exactly how a refrence, let us say for now I am referring to OData V4, but this is applicable to V3 too, so referring to the OData CSDL standard the datandard for V4 states the following regarding references:
The edmx:Reference element MUST specify a Uri attribute. The Uri attribute uniquely identifies a model, so two references MUST NOT specify the same URI. The value of the Uri attribute SHOULD be a URL that locates a CSDL document describing the referenced model. If the URI is not dereferencable it SHOULD identify a well-known schema. The value of the Uri attribute MAY be an absolute or relative URI; relative URIs are relative to the xml:base attribute, see [XML‑Base].
the "XML-Base" W3 standard at that link states that:
The attribute xml:base may be inserted in XML documents to specify a base URI other than the base URI of the document or external entity.
So from the above if there is a relative URI being used for an edmx:Reference, for example:
So this is what is unclear to me:
<edmx:Edmx>
tag? For example:Beta Was this translation helpful? Give feedback.
All reactions