XSL Help

Subject: XSL Help
From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx>
Date: Mon, 13 Nov 2000 12:01:04 +1100
I have a problem with opening the XML files in the ie5.5 web browser.  For
some reason, it shows on my computer, but not on 2 of my collegue's
computer.  At first we thought it was cos they didn't have the msxml3.dll,
but that didn't work either. the problem is that the stylesheet seems to
work, because the background and all the special templates shows up, but
none of the data in the xml shows up.  Can anyone please help me on that?
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<?xml:stylesheet type="text/xsl" href="Prop.xsl"?>

<Entity  id='sub010040syddlg' class='Substations'>
<Property Caption='Id' Value='sub010040syddlg'/>
<Property Caption='Class' Value='Substations'/>
<Property Caption='Site' Value='P65020'/>
<Property Caption='East' Value='857533.578'/>
<Property Caption='North' Value='7411317.824'/>
<Property Caption='Operational Number' Value='SG20332'/>
<Property Caption='Name' Value='SHOWGROUND NO.2'/>
<Property Caption='Subclass' Value='DISTSUB'/>
<Property Caption='Capture' Value='750/3'/>
<Property Caption='Primary Voltage' Value='11 kV'/>
<Property Caption='Leaking' Value='No'/>

<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
<xsl:output method="html" omit-xml-declaration="yes" />

<xsl:template match="/" xml:space="preserve">
	<STYLE type="text/css">
		<!--BODY {background-color: D1DDFF }-->
		H1 { font: 28pt; font-family: Arial; font-weight: 700;
color: white }
		H2 { font: 26pt; font-family: Arial }
		H3 { font: 20pt; font-family: Arial; margin-left: 30pt }
		H4 { font: 18pt; font-family: Arial; margin-left: 30pt }
		H5 { font: 16pt; font-family: Arial; margin-left: 30pt }
		H6 { font: 14pt; font-family: Arial; margin-left: 30pt }
            P { font: 12pt; font-family: Time New Roman }
		HR { width: 95%; align: center }
		TH {background-color: Salmon }
	<TABLE WIDTH="100%">
	<TD><IMG SRC="C:/Doco/40/Images/PV4.gif"
ALT="http://powerview.ceanet.com.au"/><font size="7" color="DarkBlue"><B>
	<TD ALIGN="right"><IMG SRC="W:/CEANET logo (Current)/logo no
background copy.gif" ALT="http://www.ceanet.com.au"/></TD>

<xsl:template match="Entity" xsl:space="preserve">
BGCOLOR="OrangeRed"><TR><TD><H1><xsl:value-of select="@class"/> -
<xsl:apply-templates select="Property[@Caption='Operational Number']"
mode="heading"/> Properties</H1></TD></TR></TABLE>-->
	<SPAN STYLE="background-color: DarkBlue; width: 70%; padding-left:
10pt"><H1><xsl:value-of select="@class"/> - <xsl:apply-templates
select="Property[@Caption='Operational Number']" mode="heading"/>
		<xsl:apply-templates select="Property" mode="body"/>

<xsl:template match="Property" mode="heading" xsl:space="preserve">
	<xsl:when test="@Value=''">
		<xsl:apply-templates select="@Value"/>

<xsl:template match="Property" mode="body" xsl:space="preserve">
	<TD BGCOLOR="Salmon"><B><FONT><xsl:value-of
	<xsl:when test="@Value=''">
		<TD BGCOLOR="Lavender">&#160;</TD>
		<TD><xsl:apply-templates select="@Value"/></TD>


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

Current Thread
  • XSL Help
    • Rosa I-Ting Cheng - Mon, 13 Nov 2000 12:01:04 +1100 <=