xsl-list
[Top] [All Lists]

RE: Incorrect output with IE6

2002-11-04 22:03:24
Oh, I get it now.

The issue is that IE6 and Saxon are not really the same type of software. IE6 
is a browser, whereas Saxon is an XSLT processor. IE6 relies on MSXML4, which 
*is* an XSLT processor. I realize that you may well know this, but I'm sure 
others are a little fuzzy on this point.

That's a long way of saying that you cannot expect parity of output between 
Saxon and IE6; however, you can expect such parity with MSXML4 or System.Xml.

IE6 is expecting HTML. When it doesn't get HTML, it just displays the text 
nodes, as you've found. I'm not entirely sure how IE6 responds to SVG embedded 
within HTML (assuming that you had some sort of SVG add-in), but I'm certain 
that it doesn't do anything with standalone SVG documents.

So, you can either use Saxon or MSXML4 to produce SVG or change your transform 
to output HTML, which will then be nicely viewable in IE6 (or IE5 for that 
matter).

Hope that helps,

Rich

-----Original Message-----
From: Adrian [mailto:a(_dot_)hobson(_at_)student(_dot_)unsw(_dot_)edu(_dot_)au] 
Sent: Monday, November 04, 2002 8:13 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com

Added a short version of the xml file as requested.
Adrian

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test2.xsl"?>
<LandXML version="1.0" date="2001-03-08" time="08:44:45" readOnly="false"
language="English">
  <Project name="5558-Subdivision"/>
    <Parcels>
      <Parcel name="801" area="554.065">
         <Center>33524.27796375 31528.20560466</Center>
         <CoordGeom>
           <Line>
             <Start>33505.95684580 31533.46501647</Start>
             <End>33516.39685788 31545.58962565</End>
           </Line>
           <Line>
             <Start>33516.39685788 31545.58962565</Start>
             <End>33542.33349683 31523.25663165</End>
           </Line>
         </CoordGeom>
      </Parcel>
    </Pracels>
  </Project>
</LandXML>


At 19:46 4-11-2002 -0800, you wrote:
Could you please add your input XML?

Thanks,

Rich

-----Original Message-----
From: Adrian 
[mailto:a(_dot_)hobson(_at_)student(_dot_)unsw(_dot_)edu(_dot_)au] 
Sent: Monday, November 04, 2002 5:59 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com

Hello

When I process my xml file with saxon I get the output that I expect,
however with IE6 it only seems to output the text nodes (ie. Parcel 1Parcel
2Parcel3 etc).  The relevant part of the xsl file is included below.  Any
suggestions would be appreciated.

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
<xsl:output method = "xml"
           doctype-public="-//W3C//DTD SVG 20010904//EN"

doctype-system="http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd";
           media-type="image/svg+xml" />

<xsl:template match="/">
 <svg width="500px" height="500px" preserveAspectRatio="xMinYMin meet">
   <xsl:attribute name="viewBox">31100 -33800 500 500</xsl:attribute>
   <g transform="scale(1, -1)">
   <xsl:apply-templates select="//Parcels" />
   </g>
 </svg>
</xsl:template>

<xsl:template match="Parcels">
 <xsl:apply-templates select="Parcel"/>
</xsl:template>

<xsl:template match="Parcel">
 <g>
 <desc>Parcel <xsl:value-of select="@name" /></desc>
 <xsl:apply-templates select="CoordGeom"/>
 </g>
</xsl:template>
...


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




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




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




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



<Prev in Thread] Current Thread [Next in Thread>