473,395 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Style sheet gives me an error

RD
The data comes out Ok in columns but at bottom of page I get the following
message
The following tags were not closed: CONAME,CONAME. Error processing resource
'file:///C:/ProjetsVbNet/RMT/Sg...

The code below follows step by step a sample supplied by MS. Can anyone tell
me what to do not to get this err message.

Any help would be greatly appreciated.
Bob
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:template match="/">
<HTML>
<BODY>
<TABLE>
<xsl:for-each select="CONAME/DipReceived">
<TR>
<TD><xsl:value-of select="DateAndTimeReceived" /></TD>
<TD><xsl:value-of select="CarrierSiteID" /></TD>
<TD><xsl:value-of select="TankId" /></TD>
<TD><xsl:value-of select="CarrierProductCode" /></TD>
<TD><xsl:value-of select="CarrierSiteName" /></TD>
</TR>
</xsl:for-each >
</TABLE>
</BODY>
</HTML>
</xsl:template>

Sample data is:
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml:stylesheet type="text/xsl" href="CONAME.xsl" ?>
<CONAME>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803351</CarrierSiteID>
<TankId>5</TankId>
<CarrierProductCode>2002</CarrierProductCode>
<CarrierSiteName>4370 QUEBEC </CarrierSiteName>
</DipReceived>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803437</CarrierSiteID>
<TankId>3</TankId>
<CarrierProductCode>1001</CarrierProductCode>
<CarrierSiteName>CLAUDE ROD </CarrierSiteName>
</DipReceived>
</CONAME>
</xsl:stylesheet>
Nov 12 '05 #1
2 1852
I'm guessing that either:

1. This is really an encoding issue. The processor is coming across a
character that's not valid in your current encoding. I notice you're using
Latin-1, but the data I see would imply the possibility of characters not
contained in that encoding.

2. Your XML document contains unescaped markup characters that don't
belong, such as an Ampersand.

Regards,
Mike Sharp

"RD" wrote:
The data comes out Ok in columns but at bottom of page I get the following
message
The following tags were not closed: CONAME,CONAME. Error processing resource
'file:///C:/ProjetsVbNet/RMT/Sg...

The code below follows step by step a sample supplied by MS. Can anyone tell
me what to do not to get this err message.

Any help would be greatly appreciated.
Bob
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:template match="/">
<HTML>
<BODY>
<TABLE>
<xsl:for-each select="CONAME/DipReceived">
<TR>
<TD><xsl:value-of select="DateAndTimeReceived" /></TD>
<TD><xsl:value-of select="CarrierSiteID" /></TD>
<TD><xsl:value-of select="TankId" /></TD>
<TD><xsl:value-of select="CarrierProductCode" /></TD>
<TD><xsl:value-of select="CarrierSiteName" /></TD>
</TR>
</xsl:for-each >
</TABLE>
</BODY>
</HTML>
</xsl:template>

Sample data is:
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml:stylesheet type="text/xsl" href="CONAME.xsl" ?>
<CONAME>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803351</CarrierSiteID>
<TankId>5</TankId>
<CarrierProductCode>2002</CarrierProductCode>
<CarrierSiteName>4370 QUEBEC </CarrierSiteName>
</DipReceived>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803437</CarrierSiteID>
<TankId>3</TankId>
<CarrierProductCode>1001</CarrierProductCode>
<CarrierSiteName>CLAUDE ROD </CarrierSiteName>
</DipReceived>
</CONAME>
</xsl:stylesheet>

Nov 12 '05 #2
Hi

I have tried running it. And it runs smoothly without giving any
encoding issues.

Regards
Vikesh

"rdcpro" <rd****@discussions.microsoft.com> wrote in message
news:49**********************************@microsof t.com...
I'm guessing that either:

1. This is really an encoding issue. The processor is coming across a
character that's not valid in your current encoding. I notice you're using Latin-1, but the data I see would imply the possibility of characters not
contained in that encoding.

2. Your XML document contains unescaped markup characters that don't
belong, such as an Ampersand.

Regards,
Mike Sharp

"RD" wrote:
The data comes out Ok in columns but at bottom of page I get the following message
The following tags were not closed: CONAME,CONAME. Error processing resource 'file:///C:/ProjetsVbNet/RMT/Sg...

The code below follows step by step a sample supplied by MS. Can anyone tell me what to do not to get this err message.

Any help would be greatly appreciated.
Bob
<?xml version="1.0" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >

<xsl:template match="/">
<HTML>
<BODY>
<TABLE>
<xsl:for-each select="CONAME/DipReceived">
<TR>
<TD><xsl:value-of select="DateAndTimeReceived" /></TD>
<TD><xsl:value-of select="CarrierSiteID" /></TD>
<TD><xsl:value-of select="TankId" /></TD>
<TD><xsl:value-of select="CarrierProductCode" /></TD>
<TD><xsl:value-of select="CarrierSiteName" /></TD>
</TR>
</xsl:for-each >
</TABLE>
</BODY>
</HTML>
</xsl:template>

Sample data is:
<?xml version="1.0" encoding='ISO-8859-1'?>
<?xml:stylesheet type="text/xsl" href="CONAME.xsl" ?>
<CONAME>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803351</CarrierSiteID>
<TankId>5</TankId>
<CarrierProductCode>2002</CarrierProductCode>
<CarrierSiteName>4370 QUEBEC </CarrierSiteName>
</DipReceived>
<DipReceived>
<DateAndTimeReceived>12/23/2004 3:22:20 PM</DateAndTimeReceived>
<CarrierSiteID>803437</CarrierSiteID>
<TankId>3</TankId>
<CarrierProductCode>1001</CarrierProductCode>
<CarrierSiteName>CLAUDE ROD </CarrierSiteName>
</DipReceived>
</CONAME>
</xsl:stylesheet>

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages...
6
by: Mark Cunningham | last post by:
I am curious if there is something that would be considered a proper method for locating small (three to four items) amounts of page specific styling. Or does it really matter in the great scheme...
3
by: macgyver | last post by:
This is a strange question, and I think the answer is NO, but I am asking anyway. I am a member of a website which allows us to alter our member profiles. Using css in the middle of the profile...
1
by: Jon Paugh | last post by:
Hi, Our ASP.NET app has multiple installations. Each installation is for a different customer. Each customer has their own style sheet and images. Ideally a given installation would not have...
2
by: Rob Roberts | last post by:
In a VS2005 ASP.NET project, I'm trying to find a way to change which css file is linked in based on the browser type. I'd like to use one css file for IE browsers, and a different one for all...
9
by: Radium | last post by:
Cascading Style Sheet is an extreme hazard to your privacy. It allows others on the internet to see your monitor and files. It allows them to copy images on your monitor to their computers. It...
1
by: Warren Machanik | last post by:
I am having problems with applying a style on a style sheet. I have created a div and created a class. In the style sheet file I did the following: div.TopBar { background: Silver...
2
by: Warren Machanik | last post by:
I am a relative newbee I am having problems with applying a style on a style sheet. I have created a div and created a class. In the style sheet file I did the following: "div.TopBar {...
8
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{...
10
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ......
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.