[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: namespaces and copying trees

Subject: Re: namespaces and copying trees
From: Joern Clausen <joern@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 9 Aug 2001 11:01:27 +0200
xsltproc saxon comparison
Hello!

Thanks Jeni, Oliver and Mike! Three slightly different solutions.
Combined with three XSLT processors (Saxon, Xalan and LibXSLT's
xsltproc) this calls for a comparison. The results are far more
different than I would have expected.

xsltproc didn't produce a single character of output with any of the
stylesheets. Maybe that explains my failure to come up with a solution
on my own, as this is (or should I say: was) my prefered XSLT processor.

And even the two other processors generated different results. The main
difference is that Saxon generated additional blank lines. That is
probably not really a problem, but worth noting. What is a bit strange
(maybe even a bug?): Xalan together with Jeni's solution copies all
comment nodes from the XHTML DTD into the result file. The source file
starts like this:


   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


The resulting file starts like this:


   <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
   <!--
      Extensible HTML version 1.0 Transitional DTD

      This is the same as HTML 4.0 Transitional except for
      changes due to the differences between XML and SGML.


and continues with all comments from
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd. This does not
happen with Saxon.


Anyway, thanks again for the quick help!

-- 
 Joern Clausen                                joern@xxxxxxxxxxxxxxxxxxxxxxxx
 Faculty of Technology           http://www.TechFak.Uni-Bielefeld.DE/~joern/
 Bielefeld University, Germany                           +49 (0)521/106-2905

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.