More xml posts
March 27, 2004
XSLTXT - Version 2
I've recently finished an updated version of my alternative syntax for xml. This one offers a more Java or C like syntax and other improvements. The project is hosted on java.net at xsltxt.dev.java.net. Here's an example of a simple stylesheet that demonstrates the syntax.
stylesheet 1.0;
output method=text;
// For each row
tpl [/table/row] {
if [@nullable] {
nullable(#n = `@name`);
} else {
notNullable(#n = `@name`);
}
}
tpl nullable(#n) {
$n; " IS NULL;";
}
tpl notNullable(#n) {
$n; " IS NOT NULL;";
}
Posted by Alex at March 27, 2004 07:33 PMComments
I love the concept, but I couldn't roundtrip some of my complicated stylesheets. Email me for a copy if you're interested.
Posted by: Ned Batchelder on March 30, 2004 09:44 PM
The latest version should fix these problems.
Posted by: Alex on May 16, 2004 03:32 PM
Post a comment