Issue with branching

Fredrik_Lönn
Posts: 22

Issue with branching

Tue Nov 07, 2017 1:52 pm

I have an odd issue that popped up when trying to generate multiple versions of the same ditamap. I get the error message:
An empty sequence is not allowed as the value of variable $entryNumber


It works if I either remove one of the ditavalref entries, or remove the table from the dita-file.

Note that there is no actual profiled content in these files.

My root map looks like this:

Code: Select all

<map>
 <title>Test of branching</title>
 <topicref href="M4_Product_Specification.ditamap" format="ditamap">
  <ditavalref href="owner_filters/mechanics.ditaval"/>
  <ditavalref href="owner_filters/optics.ditaval"/>
 </topicref>
</map>

M4_Product_Specification.ditamap:

Code: Select all

<map>
 <title/>
 <topicref href="prod_spec/reference/c_M4_acroabbr.dita"/>
</map>

c_M4_acroabbr.dita:

Code: Select all

<concept id="concept_qsg_qg5_gy">
 <title>Acronyms and abbreviations</title>
 <shortdesc></shortdesc>
 <conbody>
  <p>The following acronyms and abbreviations are used in this document.<table frame="none"
    rowsep="0" colsep="0">
    <tgroup cols="2" align="left">
     <colspec colname="c1" colnum="1" colwidth="2.0*"/>
     <colspec colname="c2" colnum="2" colwidth="10.0*"/>
     <tbody>
      <row>
       <entry>AA</entry>
       <entry>Active Area (of display)</entry>
      </row>
     </tbody>
    </tgroup>
   </table></p>
 </conbody>
</concept>


mechanics.ditaval:

Code: Select all

<val>
    <prop action="exclude" att="audience" val="Electronics" />
    <prop action="exclude" att="audience" val="Optics" />
    <prop action="exclude" att="audience" val="Manufacturing" />
    <prop action="exclude" att="audience" val="Integration" />
    <prop action="exclude" att="audience" val="FW_SysTest" />
    <prop action="exclude" att="audience" val="Signal" />
</val>


optics.ditaval:

Code: Select all

<val>
    <prop action="exclude" att="audience" val="Electronics" />
    <prop action="exclude" att="audience" val="Mechanics" />
    <prop action="exclude" att="audience" val="Manufacturing" />
    <prop action="exclude" att="audience" val="Integration" />
    <prop action="exclude" att="audience" val="FW_SysTest" />
    <prop action="exclude" att="audience" val="Signal" />
</val>
Fredrik_Lönn
Posts: 22

Re: Issue with branching

Tue Nov 07, 2017 1:54 pm

I forgot to mention that I am transforming using the standard issue DITA-OT-2.4 PDF plugin.
/Fredrik
Radu
Posts: 5088

Re: Issue with branching

Wed Nov 08, 2017 3:41 pm

Hi Fredrik,

Sorry for the delay, I created a small project using your exact samples.
I published to PDF using both Oxygen 19.0 (DITA OT 2.4.4) and Oxygen 19.1 (DITA OT 2.5.2) without any customizations and I cannot reproduce the problem with the message An empty sequence is not allowed as the value of variable $entryNumber being displayed.
What version of Oxygen are you using?
Could you try to manually remove your transformation temporary and output folders before publishing?
Did you make any customization to the PDF processing XSLTs? Any plugins? Customization folder?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Fredrik_Lönn
Posts: 22

Re: Issue with branching

Wed Nov 08, 2017 6:40 pm

Hi Radu,
Thank's for your effort. When repeating this with the same setup it now works... I assume it may be related to some temporary file that is no longer there, if that is a possibility.

No matter, I have decided on the approach of applying the ditaval files as a batch job using the transformation scenario tool. That way I can save each version with a separate file name. I think that works better in this case.

Best Regards,
Fredrik
Radu
Posts: 5088

Re: Issue with branching

Thu Nov 09, 2017 9:22 am

Hi Fredrik,

One thing you could do if you output to WebHelp Responsive would be to add in the HTML header some kind of combo box that people could use to switch between different versions of the documentation. The combo box would call some PHP script on the server which would redirect the end user to the similar documentation pages for the version that they chose.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Fredrik_Lönn
Posts: 22

Re: Issue with branching

Thu Nov 09, 2017 3:00 pm

Sounds neat. However, I am producing pdf documents and I realized that just generating the same list of topics over and over without further structure becomes a bit difficult to navigate.

/Fredrik
Radu
Posts: 5088

Re: Issue with branching

Thu Nov 09, 2017 3:08 pm

Hi Fredrik,

Oh, now I see you mentioned you were using PDF about 5-10 times in this thread :)
Ideally users would download separately PDFs for each version/role but it may depend on your particular case. I also would not enjoy being given a PDF containing everything.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “DITA (Editing and Publishing DITA Content)”

Who is online

Users browsing this forum: No registered users and 1 guest