Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Request for advice. Presenting XML.

by Matts (Deacon)
on Jul 08, 2002 at 13:20 UTC ( [id://180172] : note . print w/replies, xml ) Need Help??

in reply to Request for advice. Presenting XML.

A few comments:
  1. HTML::Template is another language - exactly the same "issue" as you have with XSLT. The only difference is that XSLT is more powerful, and perhaps more cleanly designed, having learned from 20 years of development of DSSSL, which XSLT is based on.
  2. There are some pretty good perl modules for doing XSLT. Notably XML::Sablotron, XML::LibXSLT and XML::Xalan.
  3. Basic XSLT is incredibly simple. To style a particular tag (say <foo>) as bold, you just use:
    <xsl:template match="foo"> <b><xsl:apply-templates/></b> </xsl:template>
    Yes, this is slightly verbose, but saving on typing isn't everything. And that's 90% of what you need to achieve in XSLT.
I hope this helps in your decision process.