Using Perl for transforming XML using XSLT

The XML::XSLT module is necessary to do the transformation of the XML to other format using the XSLT in Perl. You can download the XML::XSLT module from cpan.org. A simple search on that site would give you the download link to that module.

_______________________________________________


_______________________________________________

If you want to use that module in Perl programming you need some other modules also installed in your system. The other modules that are required are XML::RegExp, XML::DOM, and XML::LWP. You can check the cpan.org site for other details on the required modules.

Once you have installed this module, you can easily write the transformation code. In the code import the XML::XSLT module and define two variables for loading the .xsl and the .xml files.

You can use tools like XMLSpy to create the XSL and the XML files needed. Now create an instance of the XSLT processor with the code similar to,

my $xsltobj = XML::XSLT->new($ur_xsl_file);

Now use the serve() method of the xsltobj to transform the XML file. Then use the dispose() method to free up the memory used.

XSLT, Second Edition (Kansas City InfoZine)
New from O'Reilly: Mastering XML Transformations

GovTrack opens up information on US legislature (NewsForge)
Since 2004, GovTrack.us has housed information about the United States Congress, including 10 years of bills, voting records, and contact information for individual members of Congress. Visitors can also find out who represents them and search the database for committee assignments, legislative statistics, and the Congressional Record, which is the official record of daily proceedings in ...



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover


 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Dallas Web Design- local Dallas web design firm offers site design and backend system development