473,503 Members | 1,831 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strictness of XSLT stylesheet validation when no schema is referenced ?

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 PartnerML is supplied in several modules, brought
together by <xs:include> and <xs:import> statements. My understanding
(and experiment) suggests that XMLSpy can't work with such a
modularized schema.

As a result, my XSLT documents have a header like this:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fntg="http://www.futurenet.com"
exclude-result-prefixes="fntg" >

I use the usual XSL namespace, our own namespace for the input
elements, and just use the default namespace for output. Everything
works fine for _using_ the stylesheet, but XMLSpy complains that the
stylesheet is invalid (it can't find the output elements). And when
XMLSpy complains about this, it gets annoying (3 pop-up dialog clicks
every time you try to save the file)
What's going on here (strictly speaking) ? My understanding is that a
document like my stylesheet is to be seen as "valid", because it's
well-formed and it's valid as far as the referenced schemas do
describe it. In the absence of a schema for the default namespace,
then tools should be generous in what they permit.

Now I'm not an XML language-lawyer, so I can't point at the relevant
part of the W3C XML TR offhand. If anyone could do so, or tell me I'm
either definitely right or definitely wrong, then I'd find that really
helpful. Have I got it wrong, or is it XMLSpy ?
Anyone have useful work-arounds ?
Thanks
Jul 20 '05 #1
0 1378

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

Similar topics

1
2793
by: Stefan Siegl | last post by:
Hello, I am trying to learn XSLT to use it in another project. I start reading the book "Java and XSLT" and tried the examples and they are went quite fine (how suprising *g*). Then I tried...
1
1668
by: Harry Zoroc | last post by:
I would like to treat an xsd Schema file as XML file and to display the targetNamespace and all the imports. That's it. But the following does not work. Why? I did not enter the stylesheet in the...
1
363
by: Wil | last post by:
I'm very new to developing in .NET and even newer to XML. The past few days have been pretty frustrating for me because I'm trying to perform a transform on data in a dataset and it's not working....
5
2896
by: Vijay | last post by:
I had a following xslt : <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Format" > ...
1
6380
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i...
1
2709
by: Nick | last post by:
I am working on a website for a client and one of their requirements was to have a mailing list. I decided to XSLT to transform "templates" to HTML so that editing was very easy and less time...
4
3110
by: n.phelge | last post by:
I need to perform an XSLT to set the namespace on some XML and I need to preserve the original document line formatting to assist with error handling (so the line number from any schema validation...
7
3055
by: C.W.Holeman II | last post by:
For info on the context of my question see the end of this posting. From http://www.w3.org/TR/XHTMLplusMathMLplusSVG/: How can I validate the result of client-side XSLT transform which has...
0
7202
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,...
0
7086
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
7330
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...
0
5578
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,...
1
5014
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
3167
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...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
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...

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.