473,396 Members | 1,966 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.

Saxon 8, validating

Hi,

I use Saxon 8 to transform a xml document with a XSLT 2.0 stylesheet.
But in my result file there are many blank lines which should not be
there. I assume that Saxon does not validate the document against the
dtd and therefore does not know that there are no mixed elements. Saxon
seems to interpret all the line feeds and the indents. But they exist
just for the nice looking.

It should be possible to turn on validating by giving the "-v" option,
but this does not work (there are the same blank lines) nor is there an
error message, that validating failed.

Does anybody succeeded by using the -v option?

Peter
Jul 20 '05 #1
3 1844

You didn't say which version of saxon 8 you have (the free saxon 8-B
version is not schema-aware) However in either version you can do as you
do in xslt1 and add
<xsl:strip-space elements="*"/>
to your stylesheet to remove the unwanted text nodes.
David
Jul 20 '05 #2
David Carlisle wrote:
You didn't say which version of saxon 8 you have (the free saxon 8-B
version is not schema-aware) However in either version you can do as you
do in xslt1 and add
<xsl:strip-space elements="*"/>
to your stylesheet to remove the unwanted text nodes.


Yes, I use the free one. I didn't know, it is not schema-aware.
The thing with strip-space works. I've never heared of this element
before... thanks!

I have one more question: do you know of a bug, which causes to strip
off the first 2 characters in the result file?
When I send the output to the terminal it works fine.

Peter
Jul 20 '05 #3
Peter Gerstbach <peter@_REMOVE_THIS_gerstbach.at> wrote in message news:<41***********************@tunews.univie.ac.a t>...
[...]
I have one more question: do you know of a bug, which causes to strip
off the first 2 characters in the result file?
When I send the output to the terminal it works fine.


I use Saxon 8.0-B (good choice) and have encountered no such bug, nor
does anything like that seem to be listed on the bug list at
saxon.sf.net.
--
Robin Johnson
Lead Developer, enCircle Solutions Ltd.
first initial last name at encircle dot co dot uk
Jul 20 '05 #4

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

Similar topics

1
by: Collin VanDyck | last post by:
I've got a simple Java program: public class Test { public static void main(String args) { System.out.println("xalan class: " + ...
4
by: Johannes Busse | last post by:
Hello NG, I'm struggling with the following problem. I think can be solved quite easily (in fact it should be a FAQ), but it seems that I cannot solve it myself :-( my source looks like...
0
by: Gabriel | last post by:
Greetings, After 6 hours of fruitless research, I ask for your help ! I have an svg file and use Saxon latest implementation, openSource version. it holds nodes whose path are : svg/g/g/text...
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">...
2
by: Dr. Roger Wießner | last post by:
Hello! I am a newbie to XSLT and need a freeware/GNU Tool to get experience with this new topic. Which one is a good XSLT? Xalan or Saxon, or which one else? Thank you a lot!
4
by: Rolf Kemper | last post by:
Hi All, ned help on the example below. It works fine for msxml3/4 but has problems with saxon. Saxon complains "can not find matching function ..... " My target is to write style sheets...
1
by: Swami Tota Ram Shankar | last post by:
"Bob Weigel" <dontuwish@nothing.net> wrote in message > > While George Bush, is the epitome of evil, racism, and uncompassionate > > conservatism, Kerry is either deluded, very deluded, or...
2
by: klaus | last post by:
Hello, I want to pass a parameter to an xslt using saxon on a windoes 2000 system. I'm using this command line in a batch file: java -jar c:\programme\saxon\saxon8.jar -v -novw -o...
5
by: jhurrell | last post by:
I have been having some trouble getting my XSL style sheet to parse correctly. I have some XML outputted from an SQL-Server, that I then need to turn into multiple HTML files. This I have done...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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,...
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
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
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.