On 07/15/2011 12:18 AM, Orahood, Andy wrote:
> Thank you. Following up, I get the same error message in a slightly different 
> case where instead of two definitions of the same key (which throws a warning 
> in the DITA OT but I believe is allowed by the spec), I both define and use a 
> key in the same map. E.g.,
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE map PUBLIC "-//OASIS//DTD DITA Map//EN"
> "http://docs.oasis-open.org/dita/v1.2/os/dtd1.2/technicalContent/dtd/map.dtd";>
> <map>
>    <topicref keys="testing" href="testing.dita"/>
>    <topicref keyref="testing"/>
> </map>
>
> transforming that into html with any valid topic named testing.dita also 
> produces the error "A sequence of more than one item is not allowed as the 
> result of function u:tocEntry()"
>

Thank you for this information, but I think it's exactly the same bug.

   <topicref keys="testing" href="testing.dita"/>
   <topicref keyref="testing"/>

is equivalent to:

   <topicref keys="testing" href="testing.dita"/>
   <topicref href="testing.dita"/>

That is, both topicrefs pull the contents of testing.dita (which indeed 
triggers the bug you have reported).

If you don't want the first topicref to pull the content of 
testing.dita, then you must specify:

   <topicref processing-role="resource-only"
             keys="testing" href="testing.dita"/>

OR

   <keydef keys="testing" href="testing.dita"/>

 
--
XMLmind DITA Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/ditac-support

Reply via email to