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 June 28th, 2007, 02:55 PM
Authorized User
 
Join Date: Dec 2005
Posts: 71
Thanks: 10
Thanked 0 Times in 0 Posts
Default Saxon - run-time error during processing entity

Dear All,

Here is my XSLT::

XSLT

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="no" encoding="ASCII"
indent="no" />
<xsl:template match="root">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>

Query

Just to convert unicode entity to decimal...., but some times it pops up error message as shown below.

Error

Running an XSLT 1.0 stylesheet with an XSLT 2.0
processor Error
java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8
sequence. Transformation failed: Run-time errors were reported

Any help would be greatfull.

Regards,
ROCXY

__________________
Thanks,
Rocxy.
 
Old June 29th, 2007, 04:39 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

This error is nothing to do with your XSLT code - it's a problem in your XML that's being reported by the XML parser.

>Invalid byte 1 of 1-byte UTF-8 sequence.

This probably means that the parser thinks the document is in UTF-8 encoding when it isn't. If you use a different encoding such as iso-8859-1 or Windows cp1252 then you need to specify this in the XML declaration at the start of the document.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Processing ENTITY and NOTATION lines in xml mrame XSLT 2 August 1st, 2008 01:24 PM
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
run-time error(s) Chacko C++ Programming 0 March 4th, 2007 02:28 PM
run time error ashishroyk Java GUI 0 October 8th, 2004 01:42 AM
Run Time Error JBond Access VBA 0 May 27th, 2004 09:50 AM





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