[opensuse] xalan XSLT processor in openSUSE 11.1
Is anyone using xalan (xalan-j2-2.7.0-244.17) in openSUSE 11.1? I cannot get it to work. I am new to xslt, so it could be me. To eliminate as much of 'me' as possible, I am trying to run a simple XSLT example from the O'Reilly XSLT 2.0 book. Examples from that book can be found here: http://examples.oreilly.com/9780596527211/ I have my CLASSPATH set to: /usr/share/java/xalan-j2.jar:/usr/share/java/xalan-j2-serializer.jar When I run this command: java org.apache.xalan.xslt.Process I get a proper help message for xalan, as expected: Xalan-J command line Process class options: -Common Options- [-XSLTC (use XSLTC for transformation)] [-IN inputXMLURL] [-XSL XSLTransformationURL] [-OUT outputFileName] ... and so on I then try an example from Chapter 2 (from the archive found at the address above) with: java org.apache.xalan.xslt.Process -in greetings.xml \ -xsl greeting.xsl -out test.html And I get nothing. I should get the same as in greetings.html in the Chapter2 directory. xalan is one of the tools used in this book, and I am doing the command line as explained there. Perhaps I am missing some other thing that needs to be installed? As xalan does not complain at all, I can't guess what. Anyone else using xalan on openSUSE 11.1? -- Roger Oberholtzer OPQ Systems / Ramböll RST Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
Is anyone using xalan (xalan-j2-2.7.0-244.17) in openSUSE 11.1? I cannot get it to work. I am new to xslt, so it could be me. To eliminate as much of 'me' as possible, I am trying to run a simple XSLT example from the O'Reilly XSLT 2.0 book. Examples from that book can be found here:
Hi Roger For the last 3-4 years I've used xalan-c, but lately I've switched to using PHP+libxslt instead. It's just as fast and it's really easy to add extra functions (in php). Unless you need to use the java version, I would say php+libxslt is just as good. I can send my script if you want. /Per -- Per Jessen, Zürich (7.2°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 2009-11-02 at 18:30 +0100, Per Jessen wrote:
Unless you need to use the java version, I would say php+libxslt is just as good. I can send my script if you want.
I have no need of the Java version. I am not running this in a web environment. I am re-formatting xml files for statistics and verification. My first try was with xsltproc, which also used libxslt. The main reason I tried xalan was that it was used in the book I am going through to get familiar with xslt. Any info you can pass along would be greatly appreciated! -- You can't just ask customers what they want and then try to give that to them. By the time you get it built, they'll want something new. -- Steve Jobs Roger Oberholtzer Ramböll RST/OPQ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden Office: Int +46 8-615 60 20 Mobile: Int +46 70-815 1696 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Roger Oberholtzer wrote:
On Mon, 2009-11-02 at 18:30 +0100, Per Jessen wrote:
Unless you need to use the java version, I would say php+libxslt is just as good. I can send my script if you want.
I have no need of the Java version. I am not running this in a web environment. I am re-formatting xml files for statistics and verification. My first try was with xsltproc, which also used libxslt. The main reason I tried xalan was that it was used in the book I am going through to get familiar with xslt.
Any info you can pass along would be greatly appreciated!
I'll send you a my very simple script off-line - I am using it quite a lot (hundreds of times a day) for producing XHTML email content based on XML input and XHTML templates, for instance. /Per -- Per Jessen, Zürich (7.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Per Jessen
-
Roger Oberholtzer