# es4doc.rnc is in the RELAXNG Compact syntax: # http://www.thaiopensource.com/relaxng/compact/syntax.html # # es4doc.rng is a RELAXNG schema: # http://www.oasis-open.org/committees/relax-ng/ # # Note: es4doc.rnc is the master schema. # * P_LZ_COPYRIGHT_BEGIN ****************************************************** # * Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. * # * Use is subject to license terms. * # * P_LZ_COPYRIGHT_END ******************************************************** # Grammar start = es4doc es4doc = element es4doc { variableElement* & functionElement* & classElement* & requiresElement* } variableElement = element variable { attribute name {token} & docElement* } functionElement = element function { attribute name {token} & (parameterElement)* & docElement* } parameterElement = element parameter { attribute name {token} } classElement = element class { attribute name {token} & attribute extends {token}* & (functionElement | variableElement)* & docElement* } requiresElement = element requires { attribute tag {token} & variableElement* & functionElement* } docElement = element doc { text }