PXSL – Parsimonious XML Shorthand Language
Quick links:
Docs, Source, and Downloads
|
PXSL/FAQs
|
PXSL Ask-a-Question
PXSL/Examples
|
PXSL/Links
|
PXSL/Changelog
PXSL ("pixel") is a convenient shorthand for writing markup-heavy XML documents. It provides XML authors and programmers with a simple, concise syntax that they can use to create XML documents. For more advanced users, PXSL offers customizable shortcuts and sophisticated refactoring tools like functional macros that can markedly reduce the size and complexity of markup-dense XML documents.
The short version is this:
PXSL is XML turned inside-out. Instead of tagging the structure, you tag the non-structure, which is the better approach when most of your information
is structure.
For more on PXSL,
read the online documentation.
Examples
MathML in XML MathML in PXSL<declare type="fn"> declare -type=fn
<ci> f </ci> ci << f >>
<lambda> lambda
<bvar><ci> x </ci></bvar> bvar
<apply> ci << x >>
<plus/> apply
<apply> plus
<power/> apply
<ci> x </ci> power
<cn> 2 </cn> ci << x >>
</apply> cn << 2 >>
<ci> x </ci> ci << x >>
<cn> 3 </cn> cn << 3 >>
</apply>
</lambda>
</declare>Simple doc in XML Equivalent PXSL<!-- my document --> -- my document
<doc keywords="x y z"> doc -keywords=<<x y z>>
<title> title
My title <<My title>>
</title> body -id=db13
<body id="db13"> <<This is multi-
This is multi- line text.>>
line text.
</body>
</doc>—
tmoertel