You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by jo...@fwd.at on 2003/03/30 12:24:09 UTC

SOLVED: Preview Tomcat XML documentation locally with IE 6.0

Hi there,

Has anybody yet tried to preview a xml file from the tomcat docs locally 
with MS IE?
I think this makes sense if you add some sentences and want to see the 
results without ant rebuild.

There are only two minor things MS IE 6.0 complains:
*) the src and 
*) the alt variables are declared twice. 

If one corrects in the file "tomcat-docs.xsl" to logo-alt and logo-src
<xsl:comment>JAKARTA LOGO</xsl:comment>
        <xsl:variable name="logo-alt">
          <xsl:value-of select="$home-name"/>
        </xsl:variable>
        <xsl:variable name="href">
          <xsl:value-of select="$home-href"/>
        </xsl:variable>
        <xsl:variable name="logo-src">
          <xsl:value-of select="$relative-path"/><xsl:value-of 
select="$home-logo"/>
        </xsl:variable>
        <a href="{$href}">
          <img src="{$logo-src}" align="left" alt="{$logo-alt}" 
border="0"/>
        </a>
 
and declares the XSL in the XML file:
<?xml-stylesheet type="text/xsl" href="tomcat-docs.xsl"?>

==> voila! you can preview the complete XML rendered as HTML in MS IE 6.0!

cheers,
johannes