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:output 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. 5 5062
* Mi**************@t-online.de wrote in comp.text.xml:
>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.
^^
><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3c.org/1999/XSL/Transform">
^^^
You have "w3c" but you need to have "w3".
--
Björn Höhrmann · mailto:bj****@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ Mi**************@t-online.de schrieb:
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?
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
Bjoern Hoehrmann wrote:
* Mi**************@t-online.de wrote in comp.text.xml:
>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.
^^
><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3c.org/1999/XSL/Transform">
^^^
You have "w3c" but you need to have "w3".
and you have another typo, select spelled wrong, further down.
Hi,
okay I see that. And now it works fine. Thanx a lot.
M.
On Wed, 28 May 2008 11:39:47 +0200, Bjoern Hoehrmann
<bj****@hoehrmann.dewrote:
>* Mi**************@t-online.de wrote in comp.text.xml:
>>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.
^^
>><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3c.org/1999/XSL/Transform">
^^^
You have "w3c" but you need to have "w3".
Hi,
no, there's no white-space preceding the code.
M.
On Wed, 28 May 2008 11:41:04 +0200, Johannes Koch
<ko**@w3development.dewrote:
>Mi**************@t-online.de schrieb:
>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?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John L. Clark |
last post by:
I am curious as to the rationale, and effect, of having default
namespaces not applying (directly) to attributes (see
http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute
without a...
|
by: Mike Dickens |
last post by:
hi,
i'm sure this has come up before but havn't managed to find an answer.
if i have the following xslt
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet method="xml" version="1.0"...
|
by: Don Wash |
last post by:
Hi There!
I just need some advice on Namespace management for creating reusable VB.NET
applications.
I would like my applications to have this namespace structure...
Namespace MyCompany
...
|
by: Petter Reinholdtsen |
last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to
compile a program using 'using namespace std;' at the top. The reason
seem to be that the compiler refuses to accept 'using...
|
by: puzzlecracker |
last post by:
after reading some of the post I found out something rather radical to
my previous understanding: that when you do
#include<iostream>
#include<string>
#include<vector>
etc
compiler puts...
|
by: Tony Johansson |
last post by:
Hello!
I'm reading a book about C++ and there is something that I don't understand
so I ask you.
Below I have the text from the book and the code from the file where main is
located and some...
|
by: Kevin Newman |
last post by:
I've been toying with a namespace manager, and wanted to get some input.
So what do you think?
if (typeof com == 'undefined') var com = {};
if (!com.unFocus) com.unFocus = {};
...
|
by: Tiraman |
last post by:
Hi ,
I would like to use nested namespace .
I have 3 namespace as dll's :
Namespace A
Namespace B
Namespace C
And i want to have some namespace that contain them all , some thing like
|
by: Jeff Brown |
last post by:
Hi,
I suspect that this isn't possible, but I figured I'd ask.
My project has a root namespace, let's say it's "Root", that applies to
almost every source file (which is why I've set it as the...
| |
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...
|
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...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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...
|
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,...
|
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: 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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |