Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 30th, 2008, 04:54 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default Transformation error


dear sir,
i am getting below error while transporting, please can u tell me what is the prblem and how to solve it?

" Transformation failed: com.sun.org.apache.xerces.internal.impl.io.Malform edByteSequenceException: In valid byte 1 of 1-byte UTF-8 sequence."

thanks
Rajashekhara

__________________
Thanks & Regards
Rajashekahra
 
Old July 30th, 2008, 05:08 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Sounds like an error with the file its trying to load (either the stylesheet or the input xml).

/- Sam Judson : Wrox Technical Editor -/
 
Old July 30th, 2008, 05:36 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

It usually means that an XML document is encoded in iso-8859-1 or cp1252, but has no XML declaration that declares this encoding, so the XML parser is assuming UTF-8 encoding. You can often fix it by adding an XML declaration at the start of the file.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old July 30th, 2008, 10:34 PM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Dear sir,

thanks for your reply,

i am getting this error when i try to transform by an .sxx file,
but with .xsl file its not giving any error, why like this?
can u tell what is drawback of .sxx file over .xsl file?


thanks
Rajashekhara

 
Old July 31st, 2008, 02:57 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

By .sxx I guess you mean a file produced using net.sf.saxon.Compile. That isn't an XML file and can't be read by an XML parser. You need to use it using the -c option on the Saxon command line.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old July 31st, 2008, 04:06 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thank u sir,

one more doubt,

i am getting below error

"Error reported by XML parser: Element type "entry" must be declared."

for the element like bellow,
<oasis:entry></oasis:entry>

according to dtd prefix "oasis:" is required and it transforming currectly with .xsl file, but why its giving above error with .sxx file

when i removed "oasis:" it will become a invalid xml(<entry></entry> element is not there in dtd)

now what to do sir


thanks
Rajashekhara



 
Old July 31st, 2008, 04:08 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

thank u sir,

one more doubt,

i am getting below error

"Error reported by XML parser: Element type "entry" must be declared."

for the element like bellow,
<oasis:entry></oasis:entry>

according to dtd prefix "oasis:" is required and it transforming currectly with .xsl file, but why its giving above error with .sxx file?

when i removed "oasis:" it will become a invalid xml(<entry></entry> element is not there in dtd)

now what to do sir


thanks
Rajashekhara



 
Old July 31st, 2008, 04:36 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

I don't know, you will have to supply more precise details: please say exactly what you did and exactly how it failed, including product version numbers.

Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer's Reference
 
Old July 31st, 2008, 05:00 AM
Authorized User
 
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

sorry sir,

while transforming i have used options "-v -c -o", that's why i am getting that error

now i used only "-c -o" option its working fine.

sorry for giving u trouble


thanks
Rajashekhara






Similar Threads
Thread Thread Starter Forum Replies Last Post
Transformation error? Validation acwing XSLT 23 October 16th, 2008 07:19 AM
Speed Transformation pallone XSLT 1 February 29th, 2008 03:56 PM
related to look up transformation. pravasis SQL Server 2005 1 July 9th, 2007 11:06 PM
using transformation KieshaJ310 ASP.NET 2.0 Basics 2 June 6th, 2007 05:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.