Namespace ins XSL

Michael.Ruehling

Usenet Archive
Joined
May 28, 2008
Messages
5
Reaction score
0
Hi,
I know I'm a little OT but there seems no other group for it. So, I am new to XSL/XML and the sample code shown in a book doesn't seem to work (Error-Msg:

Stylesheet must start either with an 'xsl:stylesheet' or an 'xsl:transform' element, or with a literal result element that has an 'xsl:version' attribute, where prefix 'xsl' denotes the 'http://www.w3.org/1999/XSL/Transform' namespace.

From Microsoft XML-Editor 2007
where Code is:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3c.org/1999/XSL/Transform"> <xsl:eek:utput method="html"/> <xsl:template match="BUCH"> <xsl:for-each select="KAPITEL"> <H1> <xsl:value-of select="UEBERSCHRIFT"/> </H1> <H3> <xsl:value-of select="ZWISCHENUEBERSCHRIFT"/> </H3> <P> <xsl:value-of selct="TEXT"/> </P> </xsl:for-each> </xsl:template> </xsl:stylesheet>

can anyone help me out?

thanx
M.
 

Bjoern Hoehrmann

Usenet Archive
Joined
Aug 15, 2000
Messages
719
Reaction score
0

Johannes Koch

Usenet Archive
Joined
Nov 14, 2000
Messages
801
Reaction score
0
Hi,
I know I'm a little OT but there seems no other group for it. So, I am new to XSL/XML and the sample code shown in a book doesn't seem to work (Error-Msg:

Stylesheet must start either with an 'xsl:stylesheet' or an 'xsl:transform' element, or with a literal result element that has an 'xsl:version' attribute, where prefix 'xsl' denotes the 'http://www.w3.org/1999/XSL/Transform' namespace.

From Microsoft XML-Editor 2007
where Code is:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3c.org/1999/XSL/Transform">

Is there any white space preceding the code?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,244
Members
248,133
Latest member
DujonT

Latest Threads

Top