xsl-list
[Top] [All Lists]

RE: [xsl] Multibyte language only error

2006-05-30 15:16:16
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.

Karen

-----Original Message-----
From: Karen McAdams [mailto:kamcadam(_at_)adobe(_dot_)com] 
Sent: Tuesday, May 30, 2006 1:18 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Multibyte language only error

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">시작</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">설치 및 등록</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">설치</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">활성화</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">등록</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 정보</title> 
- <conbody class="- topic/body concept/conbody">
- <p class="- topic/p">
   Help Center는 세 가지 주요 기능을 제공하는 무료로 다운로드할 수 있는 응용 프로그램입니다. 
  </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">업데이트를 확인하려면</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 환경 설정을 설정하려면</title> 
- <taskbody class="- topic/body task/taskbody">
  </task>

-----Original Message-----
From: Florent Georges [mailto:darkman_spam(_at_)yahoo(_dot_)fr] 
Sent: Tuesday, May 30, 2006 12:50 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] 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 réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface ré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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--