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:
http://examples.oreilly.com/9780596527211/
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
The sample document in the ZIP file is not the same as in the book. In the book, it has a "greeting" element at the root and that would have been properly selected. Here there is no not "greeting" at the document root, so no selection is done. -- If the XSL file uses "*/greeting", or even just "*", as select pattern, it works again. -- You can also leave off the template for "/", then the build-in template matches that traverses the whole XML tree and triggers all matching templates for sub-elements. The Xalan options -TT -TC are very helpful to see what is actually going on during parsing. HTH, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org