On 05/23/2016 09:12 AM, Grundtvig Nielsen Niels wrote:

not sure what’s happening here … someone sent me a sample reference
topic, which I’ve pasted in below.

This is a bug.

Support of <properties> tables having just 2 columns, that is, not having proptype+propvalue+propdesc, is poorly implemented.

This bug will be fixed in next version of XMLmind DITA Converter.

A possible workaround is to add a <prophead> first row to your <properties> tables. Example:

---
      <prophead>
        <proptypehd>Element</proptypehd>

        <propvaluehd>Description</propvaluehd>
      </prophead>
---

Attached Test.dita should work fine in your version of XML XML Editor.






It opens and validates in XML Mind, but there are problems with the output:

if I try output to XHTML (one page) the result adds an empty column at
the right of the table

if I try output to .pdf, the conversion fails with the message The
column-number or number of cells in the row overflows the number of
fo:table-columns specified for the table.

This is a limitation of Apache FOP. RenderX XEP outputs something looking like the XHTML output (which is anyway not satisfying).





<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"

"reference.dtd">

<reference id="refTest">

   <title>xSecurity profile version</title>

   <refbody>

     <properties id="properties_fs1_fcg_yv">

       <property>

         <proptype>element</proptype>

         <propvalue>description</propvalue>

       </property>

       <property>

         <proptype>type</proptype>

         <propvalue>string</propvalue>

       </property>

       <property>

         <proptype>constraint</proptype>

         <propvalue>max 255 characters</propvalue>

       </property>

       <property>

         <proptype>presence</proptype>

         <propvalue>optional</propvalue>

       </property>

       <property>

         <proptype>notes</proptype>

         <propvalue>With this field the Security Agent has the
possibility to

         insert a longer name or explanation of the Security

         Profile</propvalue>

       </property>

     </properties>

     <properties id="properties_pwk_tcg_yv">

       <property>

         <proptype>element</proptype>

         <propvalue>dateCreated</propvalue>

       </property>

       <property>

         <proptype>type</proptype>

         <propvalue>datetime string</propvalue>

       </property>

       <property>

         <proptype>constraint</proptype>

         <propvalue>YYYY-MM-DDTHH:mm:ss</propvalue>

       </property>

       <property>

         <proptype>presence</proptype>

         <propvalue>required</propvalue>

       </property>

       <property>

         <proptype>notes</proptype>

         <propvalue>Date and timestamp when the Security Profile was created

         for the first time</propvalue>

       </property>

     </properties>

   </refbody>

</reference>


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN"
"reference.dtd">
<reference id="refTest">
  <title>xSecurity profile version</title>

  <refbody>
    <properties id="properties_fs1_fcg_yv">
      <prophead>
        <proptypehd>element</proptypehd>

        <propvaluehd>description</propvaluehd>
      </prophead>

      <property>
        <proptype>element</proptype>

        <propvalue>description</propvalue>
      </property>

      <property>
        <proptype>type</proptype>

        <propvalue>string</propvalue>
      </property>

      <property>
        <proptype>constraint</proptype>

        <propvalue>max 255 characters</propvalue>
      </property>

      <property>
        <proptype>presence</proptype>

        <propvalue>optional</propvalue>
      </property>

      <property>
        <proptype>notes</proptype>

        <propvalue>With this field the Security Agent has the possibility to
        insert a longer name or explanation of the Security
        Profile</propvalue>
      </property>
    </properties>

    <properties id="properties_pwk_tcg_yv">
      <prophead>
        <proptypehd>element</proptypehd>

        <propvaluehd>description</propvaluehd>
      </prophead>

      <property>
        <proptype>element</proptype>

        <propvalue>dateCreated</propvalue>
      </property>

      <property>
        <proptype>type</proptype>

        <propvalue>datetime string</propvalue>
      </property>

      <property>
        <proptype>constraint</proptype>

        <propvalue>YYYY-MM-DDTHH:mm:ss</propvalue>
      </property>

      <property>
        <proptype>presence</proptype>

        <propvalue>required</propvalue>
      </property>

      <property>
        <proptype>notes</proptype>

        <propvalue>Date and timestamp when the Security Profile was created
        for the first time</propvalue>
      </property>
    </properties>
  </refbody>
</reference>
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to