Smoking toooooo much PHP



Better than I expected but...
Interesting, but the proof is in more complex templates, not simple ones like this. I expect that if a template contained more literal markup, the regular XSLT syntax would be much more readable because in that syntax XML represents XML.

Your syntax is also missing namespace declarations as far as I can see, which makes it unsuitable for pretty much everything. That would have to be fixed.

Finally it depends on argument position (variable("part", "@part")) rather than explicitly named quantities. That makes it harder to read for these things.
#1 - Elliotte Rusty Harold ( Link) on 11 Apr 2007, 19:52 Delete Comment
Yes, someone did something similiar:JSLT
Take a look at:
http://www.rikarends.com/jslt-alternative-to-xslt

seems interesting, and the template-parser is written itself in JavaScript (I think :P)

regards,

Elias Baixas
#3 - Elias Baixas ( Link) on 13 Apr 2007, 21:52 Delete Comment
Yes, resin did sth similar
Resin (one of the servlet/jsp engines) did similar thing long long ago. But I'm not sure whether they still support it now (maybe this feature has been dropped).

Anyway, In my opinion, xslt is not suitable for complex page which may include javascript to manipulate the page contents.
#4 - hax ( Link) on 04 Aug 2007, 14:37 Delete Comment


Add a comment (requires javascript!)

Name
Email
Homepage
Comment Title
Comment
 
Don't bother spamming, I will just delete the comments
Contact me at alan@akbkhome.com