# HG changeset patch # User cin # Date 1440176872 -10800 # Node ID d1400de5832b2a3696616ca640b14c2192e5cff4 # Parent 8cae44c166d3fa8c333e3a667a5ada19a7c89a81 improved xsl diff -r 8cae44c166d3 -r d1400de5832b bug-list.xsl --- a/bug-list.xsl Thu Aug 20 20:54:19 2015 +0300 +++ b/bug-list.xsl Fri Aug 21 20:07:52 2015 +0300 @@ -1,16 +1,90 @@ - - - - + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + + + + + + + : + + + + ---END--- diff -r 8cae44c166d3 -r d1400de5832b bug-list1.xml --- a/bug-list1.xml Thu Aug 20 20:54:19 2015 +0300 +++ b/bug-list1.xml Fri Aug 21 20:07:52 2015 +0300 @@ -1,4 +1,5 @@ + "bug-list2.xml", -XSL => "bug-list.xsl" ); +our @ClassPath = qw( + /usr/share/java/xalan-j2-serializer.jar + /usr/share/java/xalan-j2.jar + /usr/share/java/xerces-j2.jar + /usr/share/java/xml-commons-resolver.jar + . +); + +xalan( + -IN => "bug-list1.xml", + -XSL => "bug-list.xsl", + -URIRESOLVER => "org.apache.xml.resolver.tools.CatalogResolver", + -ENTITYRESOLVER => "org.apache.xml.resolver.tools.CatalogResolver" +); sub xalan { my %params = @_; - - return system java => -cp => "/usr/share/java/xalan-j2-serializer.jar:/usr/share/java/xalan-j2.jar", "org.apache.xalan.xslt.Process", %params; + return system 'java', + -cp => join( ':', @ClassPath ), + "org.apache.xalan.xslt.Process", %params; } __END__ @@ -36,4 +50,4 @@ =back -=cut \ No newline at end of file +=cut