Subject:stylus xslt v. xalan (first example) Author:Jim Funderburk Date:18 Oct 2006 07:33 PM
I am using Stylus to learn xml. I am working through examples in book XML in a nutshell. In chapter 8 appears the first example regarding xslt. A simple xml file is transformed using an 'empty' xslt sheet.
My question regards three slightly different ways the output appears:
1. Stylus preview window
2. Saving stylus preview window to disk and looking at it
3. The output generated by xalan applied to same files.
How should I think of the differences?
Thanks for any suggestions.
Here are all the details:
After entering the code into appropriate xml and xsl files in Stylus Studio, the preview window shows all the text in a single line:
Alan Turing computer scientist mathematician cryptographer Richard P Feynman physicist Playing the bongoes.
When I save the preview window to disk it looks like:
Alan
Turing
computer scientist
mathematician
cryptographer
Richard
P
Feynman
physicist
Playing the bongoes
When I use xalan to process the files (not within stylus but within emacs shell under windows xp), the output looks like:
<?xml version="1.0" encoding="UTF-8"?>
Alan
Turing
computer scientist
mathematician
cryptographer
Richard
P
Feynman
physicist
Playing the bongoes
How should I think about the differences in this very simple case?
Here's the xml file:
<?xml version="1.0"?>
<people>