perfsonar-dev - Re: [pS-dev] help with rnc
Subject: perfsonar development work
List archive
- From: Loukik Kudarimoti <>
- To:
- Cc: "" <>
- Subject: Re: [pS-dev] help with rnc
- Date: Thu, 07 Dec 2006 17:48:47 +0000
Jason Zurawski wrote:
Loukik;Ok. Thanks!
Parameter =
element nmwg:parameter {
attribute name { xsd:string } &
(
attribute value { xsd:string } |
text
)
}
I used the same section in a rnc that I was writing up. While converting to xsd, trang gave me a warning:
/home/loukik/perfSONAR/rnc/rrdma-metadataKeyRequest.rnc:119:56: warning: choice between attributes and children cannot be represented; approximating
So, I was wondering what this warning was all about and what its implications are. Do you know?
Yes, this is a common warning. Basically it means that the interpreter can't decide what is best to do when it comes to a choice between having an attribute or a value:
<parameter value="value" /> vs. <parameter>value</parameter>
In the java handling code we follow the aproach of 'last seen', so for example of someone did something like this:
<parameter value="value" />value</parameter>
We would just go with the text value.
Loukik.
-jason
- help with rnc, Loukik Kudarimoti, 12/07/2006
- Re: [pS-dev] help with rnc, Jason Zurawski, 12/07/2006
- Re: [pS-dev] help with rnc, Loukik Kudarimoti, 12/07/2006
- Re: [pS-dev] help with rnc, Jason Zurawski, 12/07/2006
Archive powered by MHonArc 2.6.16.