473,388 Members | 1,220 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,388 software developers and data experts.

xsl stylesheet to print out xml

Hi,

I'm currently having trouble using an xsl file to print my xml datas
into a web browser.
In fact, the xsl does not interpreted.
This is my xml file :

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="xsl.xsl" type="text/xsl" ?>
<urlset>
<url>
<loc>http://www.loc>
<priority>0.5</priority>
<lastmod>2007-04-03T17:00:09+00:00</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>http://www.</loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
</urlset>

And my xsl file is like this :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="html" indent="yes"/>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform">
<xsl:template match="/">
<html>
<head>
<title>Sitemap</title>
</head>
<body>

</body>
</html>
</xsl:template>
</xsl:stylesheet>

This is a "primitive" example, but it doesn't works for me.. Could you
help me ?

Apr 4 '07 #1
4 2161
On Apr 4, 10:48 am, ernond_p...@yahoo.fr wrote:
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="xsl.xsl" type="text/xsl" ?>
<urlset>
<url>
<loc>http://www.loc>
<priority>0.5</priority>
<lastmod>2007-04-03T17:00:09+00:00</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>http://www.</loc>
<priority>0.5</priority>
<changefreq>daily</changefreq>
</url>
</urlset>
I'm not sure whether it's an actual problem with your
document or just another case of google groups getting
seriously confuzzled and mangling a post, but the above
document is not well-formed. XML documents that are not
well-formed are not XML documents and therefore cannot be
processed as such.

--
Pavel Lepin

Apr 4 '07 #2
On 4 avr, 10:11, p.le...@ctncorp.com wrote:
but the above
document is not well-formed. XML documents that are not
well-formed are not XML documents and therefore cannot be
processed as such.
ok, if you mean that this line is incorrect :
<loc>http://www.loc>
In reality, this was for my example on this post... When I test it
locally, I've this :
<loc>http://www.xxxx</loc>

Apr 4 '07 #3
On Apr 4, 10:48 am, ernond_p...@yahoo.fr wrote:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="html" indent="yes"/>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
This is just plain wrong (and not well-formed either, for
that matter).
This is a "primitive" example, but it doesn't works for
me.. Could you help me ?
1. Try reading some introductory XSLT materials.
2. Get a standalone XSLT processor (there are many) to
debug your transformations.

--
Pavel Lepin

Apr 4 '07 #4
er*********@yahoo.fr wrote:
And my xsl file is like this :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:output method="html" indent="yes"/>
You need to write well-formed XSLT, the root element needs to be the
xsl:stylesheet element and the xsl:output needs to be a child of the
xsl:stylesheet element.
--

Martin Honnen
http://JavaScript.FAQTs.com/
Apr 4 '07 #5

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

Similar topics

3
by: Sarah Haskins | last post by:
I have a few questions about this problem I'm having involving XML, DTD, and XSL. I'm working with this DTD which defines a stylesheet, as such... <?xml version="1.0" encoding="UTF-8"?>...
1
by: geotso | last post by:
Hi I'm looking for a script to activate a different stylesheet for a page, according the link a visitor clicks on. More specific, I have a page with a topic, divided into three sub-topics. I...
5
by: Lee K. Seitz | last post by:
I have a set of pages with a special stylesheet used to override some styles for printing. One of the things I've tried to do is reverse the colors of my navigation. On the screen, I have a black...
48
by: David J Patrick | last post by:
I'm trying to rewrite the CSS used in http://s92415866.onlinehome.us/files/ScreenplayCSSv2.html. using the w3.org paged media standards as described at http://www.w3.org/TR/REC-CSS2/page.html ...
5
by: David Trimboli | last post by:
I'm writing HTML 4.01 and CSS 2 pages that include a CSS-driven pop-up menu. What I'm trying to do is create a screen style that uses the menu, links, etc. normally, and a print style that removes...
19
by: deko | last post by:
Firefox will not take the following "font-weight:bold" directive in my stylesheet. Works fine in IE. #rightMenuText h5 { font-weight:bold; padding-bottom:0px; padding-top: 10px;...
0
by: Karthik | last post by:
I use a crystalreportviewer control (Version 11.5) in a ASP.Net web application to render the output from Business Objects server. I set the cssfilename property of the control to point to my...
8
by: Mark Shroyer | last post by:
I just completed a new design for a personal web site. After finishing the basic CSS stuff and double-checking it in Safari, FF, Opera, et al., I put on my war paint and fired up IE7 to figure out...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.