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()" Thanks, Andy On Jul 14, 2011, at 3:40 AM, Hussein Shafie wrote: > On 07/13/2011 07:24 PM, Orahood, Andy wrote: >> I have noticed that if I have duplicate topicref entries in the set of >> maps I'm transforming, I see the below errors in version 2.0.3: >> >> ditac: ERROR: fatal error reported by the XSLT engine: A sequence of more >> than one item is not allowed as the result of function u:tocEntry() >> (<ditac:tocEntry/>,<ditac:tocEntry/>) ; SystemID: >> file:/ditac-2_0_3/xsl/common/ditacUtil.xsl; Line#: 202; Column#: -1 >> >> ditac: ERROR: cannot transform "/ditac-out/topica.ditac" to >> "/ditac-out/topica.html" using file:/ditac-2_0_3/xsl/xhtml/xhtml.xsl: A >> sequence of more than one item is not allowed as the result of function >> u:tocEntry() (<ditac:tocEntry/>,<ditac:tocEntry/>) >> >> I think you can duplicate the problem with the following map and any valid >> topic file for "topica": >> >> <?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 id="boilermap"> >> <topicref keys="topica" href="topica.dita"/> >> <topicref keys="topica" href="topica.dita"/> >> </map> >> > > Thank you for taking the time to report this bug. > > I managed to reproduce it by running: > > ditac test.html map.ditamap > > (but, strangely enough, it does not occur when running: > ditac test.pdf map.ditamap ). > > This bug should be fixed in next release of ditac which should support > duplicate topicref entries, with or without a copy-to attribute. -- XMLmind DITA Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/ditac-support

