RE: [xsl] Multibyte language only error

Subject: RE: [xsl] Multibyte language only error
From: Owen Rees <owen.rees@xxxxxx>
Date: Wed, 31 May 2006 16:21:53 +0100
--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

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)"/>

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