473,790 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem adding xsl prefix to stylesheet

I'm pretty new to Xml and Xslt so bear with. I cant seem to add the xsl
prefix to my stylesheet and get it to work.
Error: The wrong namespace was used for XSL. Use
'http://www.w3.org/1999/XSL/Transform'.

Heres my stylesheet
--------------------

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

Heres my XmlDoc
--------------------
<?xml version="1.0" encoding="utf-8"?>
<achievements xmlns="http://tempuri.org/Achievements.xs d">
<achievement>
<date>My Date</date>
<title>My Title</title>
<description> My Description</description>
</achievement>
</achievements>
I am using a System.Web.UI.W ebControl.XML control to implement it.
-------------------------------------------------------------------------
<asp:Xml id="xmlAchievem ents" Runat="server"
DocumentSource= "../../../Globals/XML/Achievements.xm l"
TransformSource ="../../../Globals/XML/Transforms/FloatingAchieve ments.xslt"
/>

If I remove the xsl prefix in the stylesheet declaration it works. But then
I'm not able to apply html tags in my templates.
In the book I am learning from it all the examples show the xsl prefix. Why
is this not working?
Thanks

Ron
Nov 11 '05 #1
3 2543
Ron Vecchi wrote:
Heres my stylesheet
--------------------

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


Wrong. Should be either
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
</xsl:stylesheet>

or

<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">
</stylesheet>
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #2
Many Mnay thanks
"Oleg Tkachenko" <oleg@NO_SPAM_P LEASEtkachenko. com> wrote in message
news:ef******** ******@TK2MSFTN GP09.phx.gbl...
Ron Vecchi wrote:
Heres my stylesheet
--------------------

<?xml version="1.0" encoding="UTF-8" ?>
<stylesheet version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"> </stylesheet>
Wrong. Should be either
<xsl:styleshe et version="1.0"

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

or

<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform">
</stylesheet>
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #3
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:styleshe et version="1.0" xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
</xsl:stylesheet>

Hope the helps,

Randy
http://www.kbcafe.com

"Ron Vecchi" <ve******@comca st.net> wrote in message news:<Or******* *******@tk2msft ngp13.phx.gbl>. ..
I'm pretty new to Xml and Xslt so bear with. I cant seem to add the xsl
prefix to my stylesheet and get it to work.
Error: The wrong namespace was used for XSL. Use
'http://www.w3.org/1999/XSL/Transform'.

Heres my stylesheet
--------------------

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

Heres my XmlDoc
--------------------
<?xml version="1.0" encoding="utf-8"?>
<achievements xmlns="http://tempuri.org/Achievements.xs d">
<achievement>
<date>My Date</date>
<title>My Title</title>
<description> My Description</description>
</achievement>
</achievements>
I am using a System.Web.UI.W ebControl.XML control to implement it.
-------------------------------------------------------------------------
<asp:Xml id="xmlAchievem ents" Runat="server"
DocumentSource= "../../../Globals/XML/Achievements.xm l"
TransformSource ="../../../Globals/XML/Transforms/FloatingAchieve ments.xslt"
/>

If I remove the xsl prefix in the stylesheet declaration it works. But then
I'm not able to apply html tags in my templates.
In the book I am learning from it all the examples show the xsl prefix. Why
is this not working?
Thanks

Ron

Nov 11 '05 #4

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

Similar topics

20
6799
by: Bernd Fuhrmann | last post by:
Hi! I have some trouble with some simple stupid XSLT-stuff. My stylesheet: ------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
2
2724
by: Wolfgang | last post by:
I'm applying a simple XSLT style sheet to an XML file. The style sheet is: http://piru.alexandria.ucsb.edu/~rnott/MetadataMapping/access-report.xsl The XML file is here: http://piru.alexandria.ucsb.edu/~rnott/MetadataMapping/dlese-adn.xml This works fine as long as the root element of the XML file is plain
3
4957
by: Jacques | last post by:
I'm experiencing the following problem The source xml file uses a prefix (wpl:) and look like this (shortened): ----------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <wpl:Destinations xmlns:wpl="www.sapportals.com/portal/landscape" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" xsi:schemaLocation="wpl_jco_destionations_v10.xsd"> <wpl:Destination...
1
1901
by: Lothar Lemnitzer | last post by:
Dear fellows, I have a problem with matching namespaces in an XML document and an XSLT stylesheet (at least I think that this is the source of trouble). My XML document looks like this: 1 <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> 2 <!DOCTYPE relations SYSTEM "germanet_relations.dtd"> 3 <relations>
4
8978
by: Gismo | last post by:
I have got file raport.rld which is an XML file generated by MS Reporting Services. The problem is: in this file are tags from two different namespaces xmlns="http://schemas.microsoft.com/sqlserver/reporting/2003/10/reportdefini tion" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"
9
9028
by: Richard L Rosenheim | last post by:
I'm trying to query a XML file that was created via ADO.NET. My query wasn't returning anything, and I tracked the problem to an issue with the namespace that ADO.NET specified. When I remove the namespace from the XML data, the query worked. Okay, so I added code to create a XMLNamespaceManager and populate it with the namespace. Now, I'm getting this exception: Prefixes beginning with "xml" (regardless of whether the characters...
0
1142
by: John Meyer | last post by:
index: <%@ Page Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.OleDb" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <script runat="server">
5
6963
by: johanneskrueger | last post by:
Hello, I'm currently using <xsl:copy-of select="document(...)/svg:svg"/to embed an SVG file into an XHTML file. I already defined the SVG namespace and assigned svg as its prefix in my XSLT 1.0 sheet. What commands instead of copy-of could I use in order to get the prefix with every element from the external file, e.g. <svg:svg>, <svg:lineetc. instead of just <svgand <line>, as it is noted in the external file?
10
3336
by: ellie2905 | last post by:
Hello, I am new to this forum and I am glad I found it because it seems that it will help me with my problem.I have creates a site using jsf components like grid panels and buttons.In the mozilla firefox browser the components are shown just as they are supposed to, but in internet explorer my button stretches to the right until the end of the page and two buttons that I have included on a grid panel, instead of being the one below the other, in...
0
9512
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10200
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9986
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9021
agi2029
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.