Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

ajt (2546)

  (email not shown publicly)

UK based. Perl, XML/HTTP, SAP, Debian hacker.

  • PerlMonks: ajt []
  • Local LUG: AdamTrickett []
  • Debian Administration: ajt []
  • LinkedIn: drajt []

Journal of ajt (2546)

Thursday October 24, 2002
04:04 PM

XML and Perl

[ #8577 ]

I like XML, I may have mentioned this before..... I like it for a number of reasons, one of which being it's easy to get at it with XPath, and another is it's easy to convert with XSL-T. The nice thing that Perl does is, I can use it to manipulate XML, with XPath and XSL-T very easily, in a sane Perl environment. The Java crowd think XML belongs to them, but I think Perl is a good tool to work on XML, and in some ways an even better... (Think LibXML and LibXSLT).

This week I've been working on my RSS module, getting a new release ready. While reading The Register I spotted a link to Portable Application Description an XML format for describing software's licence terms and conditions. It looks easy enough, and there is even a Perl script that can convert PAD XML to HTML. To my horror it's a brute force XML to HTML tool, that uses no XML parser, no strict, and prints out it's own HTML.

If you ask me all you need is an XSL style-sheet, a PAD source file, and you should be able to transform it with any XSL-T engine you want. Okay a simple Perl script can do this for you, but it's something that the excellent Perl XSL-T modules do for you, not something you code yourself in Perl......

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.