OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

tag message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Proposal for compact RelaxNG notations


Here is below some sample compact RelaxNG notations ( http://www.relaxng.org/compact-tutorial-20030326.html  ),
applied to a couple of TAMl constructs.
Please someone check these if they are correct, especially the extensibility points.
 
Thx,
Jacques
 
 -----------------------------------------------------------------------------------------------
<testAssertion
id ? = 'xsd:normalizedString'
lg ? = 'xsd:normalizedString'
schemaVersionId ? = 'xsd:normalizedString'
{any attributes with non-schema namespace . . .}>
Content: normativeSource ?, target ?, prerequisite ?, predicate ?,
prescription ?, description ?, tag *, var *,
report *, 'xsd:Any' *
</testAssertion>

 
compact Relax NG:
 
 
element testAssertion {
  attribute id { xsd:normalizedString },
  attribute lg { xsd:normalizedString }?,
  attribute name { xsd:normalizedString }?,
  attribute anyName *,

 
  element var { var_def }*,
  element normativeSource { normativeSource_def }?,
  element target { target_def }?,
  element prerequisite { prerequisite_def }?,
  element predicate { predicate_def }?,
  element prescription { prescription_def }?,
  element tag { tag_def }*,
  element report { report_def }*,
  element anyName *
}
----------------------------------------------
 
 
<target
type ? = 'xsd:normalizedString'
schemeRef ? = 'xsd:normalizedString'
lg ? = 'xsd:normalizedString'
{any attributes with non-schema namespace . . .}>
Content: 'xsd:normalizedString'
</target>
 

Compact RelaxNG:


 
 
element target {
  attribute type { xsd:normalizedString }?,
  attribute schemeRef { xsd:normalizedString }?,
  attribute lg { xsd:normalizedString }?,
  attribute anyName *,
 
  xsd:normalizedString
}

 
 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]