Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: HTML Templating as Tree Rewriting: Part I: "If Statements"

by dakkar (Hermit)
on Oct 28, 2003 at 19:06 UTC ( #302764=note: print w/ replies, xml ) Need Help??


in reply to HTML Templating as Tree Rewriting: Part I: "If Statements"

SGML (of which HTML is an application) has always been a way to serialize trees. XML made it clearer (by simplifying the syntax), but it's nothing new.

Most templating systems do treat HTML as text, but not all of them. I use AxKit, a web framework based on XML and XSLT

XSLT is a language specifically designed for tree manipulations. Not exactly every tree manipulation: it is more oriented towards down-translations (from structure to presentation), but it is Turing-complete, and I've used it successfully in a number of occasions.

It is not compact, it is not "quick & dirty", but I find it to be the easiest way (for me) to manipulate XML data.

You can use XML::LibXML to parse HTML documents, and XML::LibXSLT to transform them.

And (referring to a previous post) some Web graphics/designers are starting to learn XSLT, since they can use it independently from the language used by the developer.

-- 
        dakkar - Mobilis in mobile

Most of my code is tested...

Perl is strongly typed, it just has very few types (Dan)


Comment on Re: HTML Templating as Tree Rewriting: Part I: "If Statements"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://302764]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (15)
As of 2014-07-25 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (171 votes), past polls