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

Reluctant question on start lines

Subject: Reluctant question on start lines
From: "Koray Berk" <berkk@xxxxxxxxxx>
Date: Fri, 20 Apr 2001 17:59:08 +0300
question sur start
Question 1:
I had asked about the namspace files and according to the replies
<xsl:stylesheet version="1.0"
xmlns:xsl="<http://www.w3.org/1999/XSL/Transform>"
xmlns:fo="<http://www.w3.org/1999/XSL/Format>">
should be my starting line.

However my xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="news">
	<b><xsl:value-of select="title"/></b><br/>
	<i>Date:</i><xsl:value-of select="date"/><br/>
	<i>Comment of <xsl:value-of select="provider"/>: <xsl:value-of
select="comment"/></i><br/>
	<xsl:for-each select="body/p"><p style="text-indent:50"><xsl:value-of
select="."/></p></xsl:for-each>
	<br/><br/>
</xsl:template>

<xsl:template match="/">
	<html>
		<body>
				<xsl:for-each select="AllNews/news">
						<xsl:apply-templates select="."/>
				</xsl:for-each>
		</body>
	</html>
</xsl:template>

</xsl:stylesheet>

does not work for my xml:
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 NT (http://www.xmlspy.com) by  () -->
<?xml-stylesheet href = "haber.xsl" type="text/xsl"?>
<AllNews>
	<news>
		<title>This is the tile</title>
		<date>This is the date</date>
		<body><p>This is the body</p></body>
		<comment>This is the comment</comment>
		<provider>This is the provider</provider>
	</news>
<AllNews>

All I get is a:

italic Date: and an itallic  Comment of: and thats that!
I have downloaded MSXSML3.0 and installed it (it installed itself using an
installer)
I am using XMLSPY

and I dont understand why this doesnt work where as
the so unrecommended <xsl:stylesheet
xmlns:xsl="http://www.w3.org/TR/WD-xsl"> works if I replace the relevant
line on my xsl.
(however with the old one <xsl:variable> doesnt work....

I am so confused....
koray


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


Current Thread

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.