Mary M. wrote:

I have two product conditions in my ditamap. Usually I exclude them using a 
ditaval file.

<prop action="exclude" att="product" val="productA"/>
  <prop action="exclude" att="product" val="productB"/>

which works fine.

I also need to produce a combined output (essentially a superset) where the two 
conditions are flagged in different colours.
I have removed the exclude lines above and tried the following instead, but it 
crashes.

  <prop action="flag" color="blue" att="product" val="productA" />
  <prop action="flag" color="red" att="product" val="productB" />


I'm sorry but I cannot reproduce the problem using latest version of XMLmind DITA Converter (v2.5.3 integrated into latest XMLmind XSL Utility v5.1).

The above DITAVAL ``flags'' do not crash XMLmind DITA Converter and work as expected. See attached files (topic files are not attached; just the map, the DITAVAL and the resulting PDF).




<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN"
"http://docs.oasis-open.org/dita/dtd/bookmap.dtd";>
<bookmap chunk="by-document" xml:lang="en-US">
  <title>DITA sample topics and bookmap</title>

  <bookmeta>
    <authorinformation>
      <personinfo>
        <namedetails>
          <personname>
            <firstname>Hussein</firstname>

            <lastname>Shafie</lastname>
          </personname>
        </namedetails>
      </personinfo>

      <organizationinfo>
        <namedetails>
          <organizationnamedetails>
            <organizationname>Pixware</organizationname>
          </organizationnamedetails>
        </namedetails>

        <addressdetails><thoroughfare>91, rue Gambetta</thoroughfare>
<locality><postalcode>78120</postalcode> <localityname>Rambouillet</localityname></locality>
<country>France</country></addressdetails>

        <contactnumbers>
          <contactnumber>Phone: +33 (0)1 30 59 81 44</contactnumber>
        </contactnumbers>

        <emailaddresses>
          <emailaddress>[email protected]</emailaddress>
        </emailaddresses>

        <urls>
          <url>www.xmlmind.com/ditac/</url>
        </urls>
      </organizationinfo>
    </authorinformation>

    <critdates>
      <created date="September 20, 2009"/>

      <revised modified="2013-10-08"/>
    </critdates>
  </bookmeta>

  <frontmatter>
    <booklists>
      <toc chunk="to-content" copy-to="index.html"/>
    </booklists>

    <bookabstract chunk="to-content" href="dita-sample/readme.dita"
                  navtitle="Select me and open me by clicking the &quot;Edit referenced topic&quot; icon in the tool bar"
                  otherprops="embeds-MathML"/>
  </frontmatter>

  <chapter chunk="to-content" href="dita-sample/topic1.dita"/>

  <chapter chunk="to-content" href="dita-sample/task1.dita" product="productA"/>

  <chapter chunk="to-content" href="dita-sample/reference1.dita"
           product="productB"/>

  <appendix chunk="to-content" href="dita-sample/concept1.dita"/>

  <backmatter>
    <topichead chunk="to-content" navtitle="Glossary">
      <topicref chunk="select-document" href="dita-sample/glossary.dita"
                toc="no"/>
    </topichead>

    <booklists>
      <indexlist chunk="to-content"/>
    </booklists>
  </backmatter>

  <reltable>
    <relrow>
      <relcell linking="sourceonly">
        <topicref href="dita-sample/topic1.dita"/>
      </relcell>

      <relcell>
        <topicref href="dita-sample/task1.dita"/>

        <topicref href="dita-sample/reference1.dita"/>

        <topicref href="dita-sample/concept1.dita"/>
      </relcell>
    </relrow>
  </reltable>
</bookmap>

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE val PUBLIC "-//OASIS//DTD DITA DITAVAL//EN"
"ditaval.dtd">
<val>
  <prop action="flag" att="product" color="blue" val="productA"/>

  <prop action="flag" att="product" color="red" val="productB"/>
</val>

Attachment: dita-sample.pdf
Description: Adobe PDF document

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

Reply via email to