4. It shall be easy to write programs which process XML documents.
domain specific languageparsers. These allow XML, or subsets of XML, to be incorporated directly into the language itself.
Language | XML Syntax | Practical XML Syntax | Non-XML Syntax |
---|---|---|---|
Atom | ✓ | ✓ | |
DocBook, HTML, … |
✓ | ✓ | |
MathML | ✓ | ✓ | |
RELAX NG | ✓ | ✓ | ✓ |
RDF | ✓ | ✓ | ✓ |
Schematron | ✓ | ✓ | |
SVG | ✓ | ✓ | |
XInclude | ✓ | ✓ | |
XLink | ✓ | ||
XML Schema | ✓ | ✓ | |
XPointer | ✓ | ||
XProc | ✓ | ✓ | |
XQuery | ✓ | ✓ | |
XSLT | ✓ | ✓ |
unitprice
pattern,
$a <= 5
”
is easier to read and understand than “$a <= 5
”.
BEGIN
/END
and :=
?with
” keyword is used at the end of each
construct in the compact syntax to introduce an unbounded list of
name/value pairs. These map back to extension attributes in the XML
syntax.CName
s are allowed as tokens. The equivalent library in
this compact syntax is shown in cx:type
,
represented in the compact syntax.p:documentation
, p:inline
might include
several consecutive sibling elements that each have to be recognized.
]]>
”
is forbidden in XML <![xml[
” and “]]>
”.
See p:choose
. Consider