[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Multibyte language only error

Subject: RE: Multibyte language only error
From: "Karen McAdams" <kamcadam@xxxxxxxxx>
Date: Wed, 31 May 2006 13:38:28 -0700
RE:  Multibyte language only  error
This code has been running in production without error against single
byte languages.

The problem is that when running lets say traditional Chinese the script
executes without problem and the parser does not see the whitespace
nodes as additional sequences.

When running against simplified Chinese (double byte) content the parser
sees whitespace as additional sequences.

This is also odd since the xsl and the xml are in Unicode.

Is behavior in accordance with the spec?

Karen



-----Original Message-----
From: Owen Rees [mailto:owen.rees@xxxxxx]
Sent: Wednesday, May 31, 2006 8:22 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Multibyte language only error

--On Tuesday, May 30, 2006 15:15:45 -0700 Karen McAdams wrote:

> What I meant to say is that there is no other title element as a child
of
> that element. There are other nested elements that contain title
element
> children.

The quoted example is too large to verify by eye, and also seems to be a

cut/paste from what is visible with some editor that folds elements - it
is
not valid XML, and is not the complete example input.

Insert something like this before your '<xsl:variable name="title" ...'

<xsl:if test="title[2]">
  <xsl:message select="('second title', $level, title[2], name(),
@id)"/>
</xsl:if>

If you get the message you do have more than one 'title' child in an
element that matches the template, ant the message will tell you where
it
is.

If that does not find a problem in the input, try to simplify both the
XSLT
and the XML input to produce a test case that exhibits the problem that
is
small enough to post in full.

--
Owen Rees
Hewlett Packard Laboratories, Bristol, UK

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.