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

RE: XSL Help

Subject: RE: XSL Help
From: Rosa I-Ting Cheng <Rosa@xxxxxxxxxxxxx>
Date: Mon, 13 Nov 2000 15:13:39 +1100
cheng rosa
Russ,

thank you very much for that! it works now! :)

-----Original Message-----
From: Russ Holmes [mailto:rholmes@xxxxxxxxx]
Sent: Monday, 13 November 2000 1:09 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: Re: XSL Help


I think I had this same problem, have your colleagues run xmlinst.exe?

Download it ffrom;

http://msdn.microsoft.com/downloads/default.asp?URL=/code/sample.asp?url=/ms
dn-files/027/001/469/msdncompositedoc.xml

Russ


----- Original Message -----
From: "Rosa I-Ting Cheng" <Rosa@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Monday, November 13, 2000 2:01 PM
Subject: XSL Help


> 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?
> thanx!
> XML:
> <?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'/>
> </Entity>
>
> XSL:
> <?xml version="1.0"?>
>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="html" omit-xml-declaration="yes" />
>
> <xsl:template match="/" xml:space="preserve">
> <HTML>
> <HEAD>
> <TITLE>Power-View</TITLE>
> <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 }
> </STYLE>
> </HEAD>
> <BODY>
> <TABLE WIDTH="100%">
> <TR>
> <TD><IMG SRC="C:/Doco/40/Images/PV4.gif"
> ALT="http://powerview.ceanet.com.au"/><font size="7" color="DarkBlue"><B>
> Power-View</B></font></TD>
> <TD ALIGN="right"><IMG SRC="W:/CEANET logo (Current)/logo no
> background copy.gif" ALT="http://www.ceanet.com.au"/></TD>
> </TR>
> </TABLE>
> <xsl:apply-templates/>
> </BODY>
> </HTML>
> </xsl:template>
>
> <xsl:template match="Entity" xsl:space="preserve">
> <!--<TABLE BORDER="1" CELLPADDING="5"
> 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"/>
> Properties</H1></SPAN>
> <TABLE WIDTH="70%" BORDER="1" BORDERCOLOR="DarkBlue">
> <xsl:apply-templates select="Property" mode="body"/>
> </TABLE>
> </xsl:template>
>
> <xsl:template match="Property" mode="heading" xsl:space="preserve">
> <xsl:choose>
> <xsl:when test="@Value=''">
> &#160;
> </xsl:when>
> <xsl:otherwise>
> <xsl:apply-templates select="@Value"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:template>
>
> <xsl:template match="Property" mode="body" xsl:space="preserve">
> <TR>
> <TD BGCOLOR="Salmon"><B><FONT><xsl:value-of
> select="@Caption"/></FONT></B></TD>
> <xsl:choose>
> <xsl:when test="@Value=''">
> <TD BGCOLOR="Lavender">&#160;</TD>
> </xsl:when>
> <xsl:otherwise>
> <TD><xsl:apply-templates select="@Value"/></TD>
> </xsl:otherwise>
> </xsl:choose>
> </TR>
> </xsl:template>
> </xsl:stylesheet>
>
>
>
> Rosa
>
>
>  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


Current Thread
  • XSL Help
    • Rosa I-Ting Cheng - Mon, 13 Nov 2000 12:01:04 +1100
      • <Possible follow-ups>
      • Rosa I-Ting Cheng - Mon, 13 Nov 2000 15:13:39 +1100 <=

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.