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

RE: Collapsing run-on tag chains not working in saxon

Subject: RE: Collapsing run-on tag chains not working in saxon or xa lan
From: Pieter Reint Siegers Kort <pieter.siegers@xxxxxxxxxxx>
Date: Tue, 2 Nov 2004 11:49:14 -0600
mxsl 4.0
OK, thanx Michael and David, let me see if we can fix that problem using
msxsl.exe:

Input (iw.xml):

<html>
<head><title>test</title></head>
<body>
<b>this</b> <span>typical</span> <a href="">document</a>

<p>It was a <i>long</i> <i>hard</i> winter.</p>

</body>
</html>

XSL (iw.xsl):
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

<xsl:output indent="yes"/>

<xsl:template match="/html">
   <xsl:copy>
     <xsl:apply-templates select="@*|node()"/>
   </xsl:copy>
</xsl:template>

<xsl:template match="@*|node()">
   <xsl:copy>
     <xsl:apply-templates select="@*|node()"/>
   </xsl:copy>
</xsl:template>

</xsl:stylesheet>


Output using msxml.exe (4.0) within Xselerator 2.6:
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<title>test</title>
</head>
<body><b>this</b><span>typical</span><a href="">document</a><p>It was a
<i>long</i><i>hard</i> winter.</p>
</body>
</html>


Output using mxsxl.exe:

C:\Documents and Settings\psiegers>msxsl -t -u 4.0 "E:\My
Documents\Marrowsoft\mySamples\2004\02nov04 - inter-word spacing\iw.xml"
"E:\My Documents\Marrowsoft\mySamples\2004\02nov04 - inter-word
spacing\iw.xsl"
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-16">
<title>test</title>
</head>
<body>

<b>this</b> <span>typical</span> <a href="">document</a>

<p>It was a <i>long</i> <i>hard</i> winter.</p>

</body>
</html>

Microsoft (R) XSLT Processor Version 4.0

Source document load time:     17.40 milliseconds
Stylesheet document load time: 26.43 milliseconds
Stylesheet compile time:       6.830 milliseconds
Stylesheet execution time:     .776 milliseconds

Well, it looks like msxsl.exe does make msxml work like it should; you can
make it work as if it was Saxon, from the command line at least. Problem
with mxsl.exe is that it shows the output with spaces inserted after each
outputted character, which I (carefully) removed in the above output. Don't
know why they appear though, and appearently there's no option to just get
the output "as-is".

Cheers,
<prs/>


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx] 
Sent: Tuesday, November 02, 2004 11:12 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Collapsing run-on tag chains not working in saxon or xa
lan


> Would you happen to have a typical example of that? 

run an identity transform, eg the one in the xslt rec over

<html>
<head><title>test</title></head>
<body>
<b>this</b> <span>typical</span> <a href="">document</a> </body> </html>



________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is powered
by MessageLabs. For more information on a proactive anti-virus service
working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.