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

Not recognized extension element on transform

I am trying an XSLT transformation using the XslCompiledTransform class. I
get an exception when I call the Transform method. It seems to point to these
two lines:

<xsl:namespace name="{$schemaPrefix}" select="$schemaNamespace"/>
<xsl:namespace name="{$prefix}" select="$targetNamespace"/>

The exception looks like:

System.Xml.Xsl.XslTransformException: 'select' is not a recognized extension
element. An error occurred at c:\temp\xsdtowsdl.xsl(65,13).
at System.Xml.Xsl.Runtime.XmlQueryRuntime.ThrowExcept ion(String text)
at <xsl:template name="definitions">(XmlQueryRuntime
{urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator
{urn:schemas-microsoft-com:xslt-debug}current)
at Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime)
at System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRunt ime runtime)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
XmlResolver da
taSources, XsltArgumentList argumentList, XmlSequenceWriter results)
at System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer,
Boolean closeWriter)

at System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigabl e contextDocument,
XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results)
at System.Xml.Xsl.XslCompiledTransform.Transform(IXPa thNavigable input,
XsltArgumentList arguments, XmlWriter results)
The transformation seems to work OK when run from XmlSpy but I don't know
why this exception is raised. Any ideas?

Thank you.

Kevin Burton
Dec 3 '06 #1
5 8605
* Kevin Burton wrote in microsoft.public.dotnet.xml:
>I am trying an XSLT transformation using the XslCompiledTransform class. I
get an exception when I call the Transform method. It seems to point to these
two lines:

<xsl:namespace name="{$schemaPrefix}" select="$schemaNamespace"/>
<xsl:namespace name="{$prefix}" select="$targetNamespace"/>
XSLT 1.0 does not include a xsl:namespace element.
>The exception looks like:

System.Xml.Xsl.XslTransformException: 'select' is not a recognized extension
element. An error occurred at c:\temp\xsdtowsdl.xsl(65,13).
The 'select' above is not an element, so either you misread the error
message or it is very poorly phrased.
--
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/
Dec 3 '06 #2

I just posted the error message (stack trace). I think that the processor is
confused since the xsl:namespace is not a recognized element.

Thank you for the response. This is good information. Where could I look to
find the supported elements?

Kevin

"Bjoern Hoehrmann" wrote:
* Kevin Burton wrote in microsoft.public.dotnet.xml:
I am trying an XSLT transformation using the XslCompiledTransform class. I
get an exception when I call the Transform method. It seems to point to these
two lines:

<xsl:namespace name="{$schemaPrefix}" select="$schemaNamespace"/>
<xsl:namespace name="{$prefix}" select="$targetNamespace"/>

XSLT 1.0 does not include a xsl:namespace element.
The exception looks like:

System.Xml.Xsl.XslTransformException: 'select' is not a recognized extension
element. An error occurred at c:\temp\xsdtowsdl.xsl(65,13).

The 'select' above is not an element, so either you misread the error
message or it is very poorly phrased.
--
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/
Dec 4 '06 #3
Apparently this element is included with XSLT 2.0 (XmlSpy seems to recognize
this). How can I get the .net Xsl classes to use 2.0?
"Bjoern Hoehrmann" wrote:
* Kevin Burton wrote in microsoft.public.dotnet.xml:
I am trying an XSLT transformation using the XslCompiledTransform class. I
get an exception when I call the Transform method. It seems to point to these
two lines:

<xsl:namespace name="{$schemaPrefix}" select="$schemaNamespace"/>
<xsl:namespace name="{$prefix}" select="$targetNamespace"/>

XSLT 1.0 does not include a xsl:namespace element.
The exception looks like:

System.Xml.Xsl.XslTransformException: 'select' is not a recognized extension
element. An error occurred at c:\temp\xsdtowsdl.xsl(65,13).

The 'select' above is not an element, so either you misread the error
message or it is very poorly phrased.
--
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/
Dec 4 '06 #4
Kevin Burton wrote:
Where could I look to
find the supported elements?
MSDN has this reference
<http://msdn2.microsoft.com/en-us/library/ms256069.aspx>, it is
originally for MSXML, Microsoft's COM based XML software package but
XslCompiledTransform in .NET supports XSLT 1.0 as well and the same
extension element (mxsl:script).

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Dec 4 '06 #5
Kevin Burton wrote:
Apparently this element is included with XSLT 2.0 (XmlSpy seems to recognize
this). How can I get the .net Xsl classes to use 2.0?
XslCompiledTransform does only support XSLT 1.0. If you currently want
to use XSLT 2.0 with .NET then you need to use Saxon from
<http://www.saxonica.com/>.
--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
Dec 4 '06 #6

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

Similar topics

0
by: bruce mcdonald | last post by:
I am creating an extension in java for my style sheet. I want to return a series of nodes containing dynamic data from an extension function. At the top of the style sheet I have ...
0
by: Arjen Haayman | last post by:
Hello, I'm using Xalan and have written Java classes as extension functions. According the documentation the return value of an extension function can be a Result tree fragment: (==...
1
by: Fisch von Gestern | last post by:
I have tried to run the extension function/element examples provided with the Xalan-J download. I believe that my classpath is correct, and that my versions are up-to-date. However, I can't get...
7
by: RC | last post by:
First, let me say I couldn't find a group discuss XML/XSLT. So I only choose the closest groups to post this message. Here is part of my *.xsl file <xsl:stylesheet...
5
by: Jeffry van de Vuurst | last post by:
Hi, I'm working on an xml schema and I'm running into some problems relating substitutionGroups and extensions. This xsd validates fine: There are three elements and three complex types and...
0
by: Ganesh Kolappan via .NET 247 | last post by:
Hi I am trying to populate a <asp:dropdownlist> in a XSLT file withdatasource pointing to a C# codebehind file method which returnsa dataview. I am using XSLT extension object. But I am...
8
by: Knighterrant | last post by:
I want to copy elements from one namespace to anothor, how to create the xslt? for example, the source data is: <s:mail xmlns:s="urn:source-namespace"> <s:subject>xxxx</s:subject>...
0
by: robert | last post by:
Hi all, I'm having a hard time resolving a namespace issue in my wsdl. Here's an element that explains my question, with the full wsdl below: <definitions name="MaragatoService"...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
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...
0
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...
0
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...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.