[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: Tue, 30 May 2006 13:18:04 -0700
karen mcadams
It does have more than one title element but not as an immediate child -


- <topic id="WSE549FCE9-42C3-497a-9315-DED903D913D5" DTDVersion="V1.1.3" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" class="- topic/topic">
  <title class="- topic/title">ll</title> 
  <body class="- topic/body" /> 
- <topic DTDVersion="V1.1.3" class="- topic/topic" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WSA62E0D75-9744-47da-972B-B83F68105FAF">
  <title class="- topic/title">l$l9 k0 k1k!</title> 
  <body class="- topic/body" /> 
- <task DTDVersion="V1.1.3" class="- topic/topic task/task" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WS39FE99F6-ACD0-4c86-AA5E-B84C2F38B8E6">
  <title class="- topic/title">l$l9</title> 
- <task DTDVersion="V1.1.3" class="- topic/topic task/task" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WSB0D51DAB-0653-4871-A4D2-F7AE8155EF13">
  <title class="- topic/title">ml1m</title> 
- <taskbody class="- topic/body task/taskbody">
  </taskbody>
  </task>
- <task DTDVersion="V1.1.3" class="- topic/topic task/task" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WS63E91261-C3DE-4c48-B6D5-A14408775223">
  <title class="- topic/title">k1k!</title> 
- <taskbody class="- topic/body task/taskbody">
- <context class="- topic/section task/context">
  </context>
  </taskbody>
  </task>
  </topic>
- <topic DTDVersion="V1.1.3" class="- topic/topic" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WSBE3876ED-B3C6-44f4-815B-C795F32D8BDC">
  <title class="- topic/title"> Help Center</title> 
  <body class="- topic/body" /> 
- <concept DTDVersion="V1.1.3" class="- topic/topic concept/concept" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WS1C637D50-636A-47ff-80C5-0339B082BAF0">
  <title class="- topic/title"> Help Center l k34</title> 
- <conbody class="- topic/body concept/conbody">
- <p class="- topic/p">
   Help Centerk
 l8 j0l' l#<l j80k
%l l j35mk
 k,4k#k! k$l4k!km  l lk
 ll) mk!j78k(lkk$. 
  </p>
  </conbody>
  </concept>
- <task DTDVersion="V1.1.3" class="- topic/topic task/task" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WS5AAA40C5-B676-4b4e-BF07-C285554519D6">
  <title class="- topic/title">lk
0l4m
8k%< ml8mk $k)4</title> 
- <taskbody class="- topic/body task/taskbody">
- <context class="- topic/section task/context">
  </context>
  </task>
- <task DTDVersion="V1.1.3" class="- topic/topic task/task" domains="(topic hi-d) (topic pr-d) (topic sw-d) (topic -d)" id="WS6BF76A67-EDF2-497b-AF04-B15C951001CE">
  <title class="- topic/title"> Help Center mj2= l$l l l$l mk $k)4</title> 
- <taskbody class="- topic/body task/taskbody">
  </task>

-----Original Message-----
From: Florent Georges [mailto:darkman_spam@xxxxxxxx] 
Sent: Tuesday, May 30, 2006 12:50 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Multibyte language only error

Karen McAdams wrote:

> <xsl:template match="*[contains(@class, 'topic/topic ')]">
>         <xsl:variable name="level"
> select="count(ancestor::*[contains(@class, 'topic/topic ')]) + 1"/>
>         <xsl:variable name="title" select="if ($level = 1) then
> concat(title,' ') else ' '"/>

> XPTY0004: A sequence of more than one item is not allowed as the
> first argument of concat()

  So the first argument of concat is a sequence of more than one item. 
So the context node has more than one 'title' child element.  So (at
least) one of the nodes of your input tree that matches the pattern:

    *[contains(@class, 'topic/topic ')]

has more than one 'title' child element.

  But your sample XML is not correct, and I suspect not complete
(because I didn't see an element with several 'title' childs).  Are you
sure of them (script, error message, input)?

  Regards,

--drkm



























	

	
		
___________________________________________________________________________ 
Yahoo! Mail rC)invente le mail ! DC)couvrez le nouveau Yahoo! Mail et son interface rC)volutionnaire.
http://fr.mail.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
--~--

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.