E
Erik Unger
Don't know how many other proposals like that are
circulating on the web - if anybody cares: this is mine
If some of you like it, i'll write a SAX parser and a converter!
?processingInstruction( text )
?xml(version="1.0")
elementName(attributeName="text" otherAttributeName='5')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with ';'
// emptyElement;
// emptyElement(attrib="");
"text"
'text: "Hello World!"'
}
// Single-line comment
/*
Multi-line comment
*/
![CDATA([ Some CDATA ])]
!DOCTYPE(greeting SYSTEM "hello.dtd")
!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???
//Simple replacement for external entities:
[URI]
element(attrib="1<2")
{
"No special handling of '<>&%^'!"
}
NameSpace:element(AttributeNamespace:atrib="text"){}
html(xmlns='http://www.w3.org/TR/REC-html40')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href='http://www.bouncingbytes.at'){"here"} }
}
}
circulating on the web - if anybody cares: this is mine
If some of you like it, i'll write a SAX parser and a converter!
?processingInstruction( text )
?xml(version="1.0")
elementName(attributeName="text" otherAttributeName='5')
{
subElementName(){} // should allow to remove empty () ?
// emptyElement{} // we also could remove empty {} and terminate with ';'
// emptyElement;
// emptyElement(attrib="");
"text"
'text: "Hello World!"'
}
// Single-line comment
/*
Multi-line comment
*/
![CDATA([ Some CDATA ])]
!DOCTYPE(greeting SYSTEM "hello.dtd")
!DOCTYPE( greeting [
!ELEMENT( greeting (#PCDATA))
])
!ENTITY(myEnt "x") // should we support entities ???
//Simple replacement for external entities:
[URI]
element(attrib="1<2")
{
"No special handling of '<>&%^'!"
}
NameSpace:element(AttributeNamespace:atrib="text"){}
html(xmlns='http://www.w3.org/TR/REC-html40')
{
head()
{
title(){"Page Title"}
}
body()
{
p(){ "Go " a(href='http://www.bouncingbytes.at'){"here"} }
}
}