04 Mar 2018 23:07:45 UTC
- Distribution: Treex-PML
- Module version: 2.24
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (2182 / 2 / 0)
- KwaliteeBus factor: 2
- 45.42% Coverage
- License: unknown
- Activity24 month
- Download (259.74KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHOROBA E. Choroba
Treex::PML::Backend::PMLTransform - I/O backend implementing on-the-fly XML to PML conversion
use Treex::PML; Treex::PML::AddBackends(qw(PMLTransform)) my $document = Treex::PML::Factory->createDocumentFromFile('input.xml'); ... $document->save();
This module implements a Treex::PML input/output backend which accepts any XML file and attempts to convert it to PML using user-defined transformations (XSLT 1.0, Perl, or external command). See "CONFIGURATION" in Treex::PML::Instance for details.
WARNING: since this backend accepts every XML file, it should be added as the last backend (otherwise other backends working with XML will not be tried).
If your system uses libxslt version 1.1.27, the XSLT transformation does not work. Upgrade your system.
Copyright (C) 2006-2010 by Petr Pajas
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.