Subject: RE: [xsl] 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 |
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: [xsl] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Collapsing run-on tag cha, Wendell Piez | Thread | RE: [xsl] Collapsing run-on tag cha, Michael Kay |
RE: [xsl] Collapsing run-on tag cha, Wendell Piez | Date | RE: [xsl] Collapsing run-on tag cha, Wendell Piez |
Month |