Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Request for advice. Presenting XML.

by Matts (Deacon)
on Jul 08, 2002 at 13:20 UTC ( #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.


Comment on Re: Request for advice. Presenting XML.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-12-27 00:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls