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

Debugging xslt transformations in XMLSpy

Hello,

I'm trying to debug an xsl transformation in XMLSpy version version 5
release 3, the same xsl transformation works correctly when transformed
using Microsoft(R) MSXML 2.0 SP 3. In XML Spy I'm getting the
following error:

Error in XPath expression, Function not in namespace.

on the following line in my main xsl file:

<xsl:value-of select="xyz:MyFunction(myparam1,myparam2,
myparam3)"></xsl:value-of>
My main xsl file has the following at the top:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0" xmlns:xyz="urn:schemas-mycompany-com:xyz">
<xsl:include href="../includes/AnotherXSL.xsl"></xsl:include>

Inside AnotherXSL.xsl I have:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:xyz="urn:schemas-mycompany-com:xyz">
<msxsl:script language="vbscript" implements-prefix="xyz"><![CDATA[
function MyFunction(byval myparam1, byval myparam2, byval myparam2)

Do some stuff...

end function

If in my main template I comment out all of the lines that call out to
the xyz: functions in my AnotherXSL.xsl template I can debug the
transformation, but this is kind of a pain.

I downloaded the trial version of XML Spy 2006, but it's even worse.
When I try to debug my xml with XMLSpy version version 5 release 3 it
automatically opens up all of the xsl templates that are included in my
main xsl template. With XML Spy 2006, it doesn't do that and it
complains about all of the xsl functions that are in stylesheets that
are included in my main stylesheet. Has anyone else seen this? Is
there some switch in XML Spy 2006 that will get it to handle includes?
Is there anyway to get XMLSpy version version 5 release 3 to handle
these VBScript functions?

Thanks,
Eric

Jun 21 '06 #1
0 1100

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

Similar topics

0
by: Andy Dingley | last post by:
I'm writing XSLT to transform fntg-schema (our own project's document schema) into PartnerML, a HTML-like XML dialect used for mobile phones. I'm using XMLSPy 4.4 to do this. The schema for...
3
by: Rolf Kemper | last post by:
Dear All, I looking for a list of xsl processors indicating what they support at present. I'm using XMLSpy which goes to XSLT 2.0 soon. My biggest head ache: What about the microsoft...
4
by: mikea_59 | last post by:
I'm getting different results from XMLSpy and Saxon translations - both are updated versions. Maybe someone here can give me some insight. Here is my input: <MESSAGE> <msgName> <B enum="1">...
6
by: Christopher | last post by:
I am currently in the process of evaluating the performance hits of moving to the .NET platform for our application. I created a sample project that loads the transforms the same XML and XSLT in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
BarryA
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...
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
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...
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
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,...

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.