Good stuff for programming geeks
[ start | index | login or register ]
start > PXSL

PXSL

Created by tmoertel. Last edited by tmoertel 313 days ago. Viewed 16177 times. #13
[diff] [history] [edit] [rdf]
labels
Category:Programming
attachments

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.

PXSL 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>

Git repo for PXSL Tools

You can grab the source code for PXSL Tools from >>its public Git repository:

$ git clone git://github.com/tmoertel/pxsl-tools.git

tmoertel

2 comments (by rmz, tmoertel) | post comment
community.moertel.com | Copyright © 2003–07 Moertel Consulting