 |
| 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
|
|
|
|

July 30th, 2008, 04:54 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 30th, 2008, 05:08 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
|
|
Sounds like an error with the file its trying to load (either the stylesheet or the input xml).
/- Sam Judson : Wrox Technical Editor -/
|
|

July 30th, 2008, 05:36 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

July 30th, 2008, 10:34 PM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 31st, 2008, 02:57 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

July 31st, 2008, 04:06 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 31st, 2008, 04:08 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|

July 31st, 2008, 04:36 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
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
|
|

July 31st, 2008, 05:00 AM
|
|
Authorized User
|
|
Join Date: Jul 2008
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
|
|
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
|
|
 |