> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of Ramaswamy R - CTD, Chennai. > Sent: Wednesday, May 26, 2004 00:26 > To: [EMAIL PROTECTED] > Subject: RE: [ASN.1] XML Notation > > > Hi, > > Thanks for that clarification, but I guess I had not put > the question very clearly. I understand that the following is > the X.680 specification for XMLSequenceValue - > > > > XMLSequenceValue: > XMLComponentValueList > | // empty > ; > > XMLComponentValueList: > XMLNamedValue > | XMLComponentValueList XMLNamedValue > ; > > XMLNamedValue: > "<" & identifier ">" XMLValue "</" & identifier ">" > ; > > > If the above is the grammar for XMLSequenceValue, then > under what specification in X.680 is the notation <c/> valid. > I understand that the same is valid when the identifier > within the Open Tag ("<") and Close Empty Tag ("/>") is a > xmlasn1typename. Thanking you.
The answer to your question is in subclause 16.8: ------------------------------------------------ 16.8 If any part of the "XMLValue" production results in an XML start-tag immediately followed by an XML end-tag, possible separated by white-space inserted as permitted by 11.1.4 (for example, <field1></field1>), these two XML tags, and any intervening white-space, can be replaced by a single XML empty-element tag (<field1/>). ------------------------------------------------ This means that any occurrence of <xyz></xyz> can be written as <xyz/>. Regards, Alessandro Triglia OSS Nokalva > > Yours Sincerely > Ramaswamy R > > To deny our instincts, is to deny the very thing that makes > us human - Mouse (The Matrix) > > > -----Original Message----- > From: Paul Thorpe [mailto:[EMAIL PROTECTED] > Sent: Wednesday, May 26, 2004 3:48 AM > To: [EMAIL PROTECTED] > Subject: Re: [ASN.1] XML Notation > > > Hi Ramaswamy, > > Yes, ASN.1 (2002) does permit the value notation you have > used below. Note, however, that use of <c/> does not indicate > the absense of the OPTIONAL field, but indicates it is > present with zero-length value. >