Loading login details...

DeltaXML Support Forums

Not found what you where looking for? Try the  advanced search 
DeltaXML Core > docbookinfilter.xsl, docbookoutfilter.xm, and Docbook 5 (namespaces)
Joined: 27-March-2007
Posts: 54
Location: Malvern, United Kingdom
Posted: 07-July-2008 17:56
Status update
Apologies for the delay - a mixture of good and bad news:

Our docbook5 comparison pipeline is ready to be included in our 5.1 release.  This part of the process takes two docbook5 files and produces and docbook5 result (with namespaced elements and revisionflags).

We've tested and validated our result files.

One good improvement in 5 is that d:phrase is allowed in many more places than previously.  This means we can provide added/deleted revisionflags rather than just changed revisionflags.  In terms of FO/PDF output this means more red/green rather than blue differences.

What has taken much longer than expected is updating the docbook-xsl customization layer - this is not really an issue to do with the introduction of the namespaces, but rather as a result of understanding and then supporting the changes in the various docbook-xsl releases over the last year or so.

If you (or any forum reader) just needs the docbook5 pipeline and are not using our customization layer we are happy to provide the DXP and XSLT filter files now.  We're still in the process of testing (we generate PDFs for 120 pairs of test files and 'eyeball' them for correctness).  This is testing the docbook-xsl customization, but also to some extent the whole 'publishing pipeline' including our 'comparison pipeline' and so would rather release the complete docnbook5 pipeline when we're done.

Thanks, and apologies for the delay,

Nigel
DeltaXML Core > "ERROR: Could not find dxp file with id 'docbook'"
Joined: 27-March-2007
Posts: 54
Location: Malvern, United Kingdom
Posted: 07-July-2008 17:35
Some renaming in Core 5.0
Hello,

Likely should have made this a new thread in the first place....


No problem - I need to go back to the previous thread soon anyway to provide an update...

I'm trying to evaluate Core 5.0 now, and getting the "ERROR: Could not find dxp file with id 'docbook'" error message when I run:

"java -jar command.jar compare docbook ../../../docs/xmllint_temporary1.xml ../../../docs/xmllint_temporary2.xml docbook-result.xml ../../../docs/outfile.xml"


This is because we renamed the sub-command in our Core 5.0 release (in the expectation of docbook5 support to be added).

If you run the command without arguments (for example: java -jar command.jar), it reports the available sub-commands, which now include docbook4.

So your command above just needs to change docbook to docbook4

As an aside:  I did explore the possibility of keeping a generic docbook pipline (which would output namespaced or non-namespaced docbook depending upon the inputs), but it was complicated and I expected the subsequent processing (eg selection of docbook-xsl vs. docbook-xsl-ns) would require/expect one or the other form of output.

The xmllint files are just files that have had their Xinclude elements consolidated by XMLlint.


OK - understood.  When we add our docbook5 pipeline/target to command.jar we will configure it to make use of Xerces' Xinclude support.

I've downloaded the latest evaluation version of Core. I suspect that this is just a config issue.


It looks like we may have web-pages or other documentation which still says 'compare docbook'.  I will try to hunt it out and change it now.

Thanks,

Nigel
DeltaXML Core > want to know how the comparison logic works
Joined: 03-July-2008
Posts: 1
Posted: 07-July-2008 17:01
want to know how the comparison logic works
I tested the two samples of xml. Samples are given below.
In sample 1, document 1 has an empty element. Document 2 has a new element added in the first position. The empty element (of document 1 ) is present in document 2 at second position. Delta XML comparison results marks the change as,
a) first element is a new (added) element
b) second element is unchanged (the empty element)

I created another sample by adding a new element in both the documents (document 1 and 2). Value of the new element is not changed in document 2. if i compare the document 1 and 2, results are changing. The first element has been marked as "modified". In the previous comparison it was marked as "new". I could not understand how the addition of a new element in both documents changes the results. Need help me in understanding the logic behind comparison.

Sample 1 - Document 1
-------------------------

<root>
<a></a>
</root>

Sample 1 - Document 2
-----------------------

<root>
<a>value0</a>
<a></a>
</root>

Sample 1 - Result
------------------

<root deltaxml:deltaV2="A!=B" deltaxml:version="2.0" deltaxml:content-type="full-context">
<a deltaxml:deltaV2="B">value0</a>
<a deltaxml:deltaV2="A=B" />
</root>


Sample 2 - Document 1
---------------------

<root>
<a></a>
<a>value3></a>
</root>

Sample 2 - Document 2
---------------------

<root>
<a>value0</a>
<a></a>
<a>value3></a>
</root>

Sample 2 - Result
------------------

<root deltaxml:deltaV2="A!=B" deltaxml:version="2.0" deltaxml:content-type="full-context">
<a deltaxml:deltaV2="A!=B">
<deltaxml:textGroup deltaxml:deltaV2="B">
<deltaxml:text deltaxml:deltaV2="B">value0</deltaxml:text>
</deltaxml:textGroup>
</a>
<a deltaxml:deltaV2="B" />
<a deltaxml:deltaV2="A=B">value3&gt;</a>
</root>
Filters > problem in deleting a element in the comparison
Joined: 19-June-2008
Posts: 4
Posted: 07-July-2008 16:13
problem in deleting a element in the comparison
old xml

<book>
   <chapter id="chapter_4">
      <sect1 condition="trusteesandofficers" continued="true" id="chapter_4-sect1_1">
         <table cols="2" datatype="2" primary="" render="0" rows="17" style="" tabletype="8">
               <tbody>
                  <row condition="TT1L">
                     <entry> Michael H. Koonce<sbr/>  Secretary<sbr/>  DOB: 4/20/1960<sbr/>  Term of office since: 2000 </entry>
                     <entry> Principal occupations: Senior Vice President and General Counsel, Evergreen Investment Services, Inc.; Secrtary, Senior Vice President and General Counsel, Evergreen InvestmentManagement Company, LLC and Evergreen Service Company, LLC; Senior Vice President and Assistant General Counsel, Wachovia Corporation
                           <footnoteref alt="1" idref="577390002" label="3" order="1" size="1" type="button" value="577390002"/>
                           <footnoteref alt="1" idref="577400002" label="4" order="1" size="1" type="button" value="577400002"/>
                           <footnoteref alt="1" idref="577410002" label="5" order="1" size="1" type="button" value="577410002"/> </entry>
                  </row>
                  <row condition="TT1L">
                     <entry> James Angelos<sbr/>  Chief Compliance Officer<sbr/>  DOB: 9/2/1947<sbr/>  Term of office since: 2004 </entry>
                     <entry> Principal occupations: Chief Compliance Officer, Evergreen Funds and Senior Vice President of Evergreen Investments Co, Inc; Former Director of Compliance, Evergreen Investment Services,Inc
                        <footnoteref alt="1" idref="577420002" label="6" order="1" size="1" type="button" value="577420002"/>
                        <footnoteref alt="1" idref="57743" label="7" order="1" size="1" type="button" value="57743"/>
                        <footnoteref alt="1" idref="57744" label="8" order="1" size="1" type="button" value="57744"/> </entry>
                  </row>
               </tbody>
         </table>
      </sec>
   </chapter>
</book>

New xml

<book>
   <chapter id="chapter_4">
      <sect1 condition="trusteesandofficers" continued="true" id="chapter_4-sect1_1">
         <table cols="2" datatype="2" primary="" render="0" rows="17" style="" tabletype="8">
               <tbody>                  
                  <row condition="TT1L">
                     <entry> James Angelos<sbr/>  Chief Compliance Officer<sbr/>  DOB: 9/2/1947<sbr/>  Term of office since: 2004 </entry>
                     <entry> Principal occupations: Chief Compliance Officer, Evergreen Funds and Senior Vice President of Evergreen Investments Co, Inc; Former Director of Compliance, Evergreen Investment Services,Inc
                        <footnoteref alt="1" idref="577420002" label="6" order="1" size="1" type="button" value="577420002"/>
                        <footnoteref alt="1" idref="57743" label="7" order="1" size="1" type="button" value="57743"/>
                        <footnoteref alt="1" idref="57744" label="8" order="1" size="1" type="button" value="57744"/> </entry>
                  </row>
               </tbody>
         </table>
      </sec>
   </chapter>
</book>

got Result

<book xmlns:deltaxml="http://www.deltaxml.com/ns/well-formed-delta-v1" deltaxml:delta="WFmodify" >
   <chapter deltaxml:delta="WFmodify" id="chapter_4">
      <sect1 deltaxml:delta="WFmodify" condition="trusteesandofficers" continued="true" id="chapter_4-sect1_1">
         <table rows="16" deltaxml:delta="WFmodify" cols="2" datatype="2" primary="" render="0" style="" tabletype="8">
            <tbody>
                  <row deltaxml:delta="WFmodify" condition="TT1L">
                     <entry deltaxml:delta="WFmodify"> <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>Michael H. Koonce</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>James Angelos </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify>
                     <sbr deltaxml:delta="unchanged"/> <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>Secretary  </deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>Chief Compliance Officer</deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify>
                     <sbr deltaxml:delta="unchanged"/> DOB: <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>4/20/1960</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>9/2/1947</deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify>
                     <sbr deltaxml:delta="unchanged"/> Term of office since: <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>2000 </deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>2004 </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify>
                     </entry>
                     <entry deltaxml:delta="WFmodify"> Principal occupations: <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>Senior Vice President and General Counsel,</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>Chief Compliance Officer,   </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify> Evergreen <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>Investment Services, Inc.; Secrtary,</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>Funds and  </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify> Senior Vice President <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>and General Counsel,</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>of  </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify> Evergreen <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>InvestmentManagement Company, LLC and   </deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>Investments Co, Inc; Former Director of Compliance,</deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify> Evergreen <deltaxml:PCDATAmodify>
                     <deltaxml:PCDATAold>Service Company, LLC; Senior Vice President and Assistant General Counsel, Wachovia Corporation</deltaxml:PCDATAold>
                     <deltaxml:PCDATAnew>Investment Services,Inc          </deltaxml:PCDATAnew>
                     </deltaxml:PCDATAmodify>
                     <footnoteref idref="577420002" value="577420002" deltaxml:delta="WFmodify" alt="1" label="3" order="1" size="1" type="button"/>
                     <footnoteref idref="57743" value="57743" deltaxml:delta="WFmodify" alt="1" label="4" order="1" size="1" type="button"/>
                     <footnoteref idref="57744" value="57744" deltaxml:delta="WFmodify" alt="1" label="5" order="1" size="1" type="button"/>
                     </entry>
                     </row>
                           <row deltaxml:delta="delete" condition="TT1L">
                     <entry> James Angelos<sbr/> Chief Compliance Officer<sbr/> DOB: 9/2/1947<sbr/> Term of office since: 2004 </entry>
                     <entry> Principal occupations: Chief Compliance Officer, Evergreen Funds and Senior Vice President of Evergreen Investments Co, Inc; Former Director of Compliance, Evergreen Investment Services,Inc<footnoteref alt="1" idref="577420002" label="6" order="1" size="1" type="button" value="577420002"/>
                     <footnoteref alt="1" idref="57743" label="7" order="1" size="1" type="button" value="57743"/>
                     <footnoteref alt="1" idref="57744" label="8" order="1" size="1" type="button" value="57744"/>
                     </entry>
                  </row>
            </tbody>
         </table>
      </sec>
   </chapter>
</book>

Expected Result

<book xmlns:deltaxml="http://www.deltaxml.com/ns/well-formed-delta-v1" deltaxml:delta="WFmodify" >
   <chapter deltaxml:delta="WFmodify" id="chapter_4">
      <sect1 deltaxml:delta="WFmodify" condition="trusteesandofficers" continued="true" id="chapter_4-sect1_1">
         <table rows="16" deltaxml:delta="WFmodify" cols="2" datatype="2" primary="" render="0" style="" tabletype="8">
            <tbody>
                  <row deltaxml:delta="delete" condition="TT1L">
                     <entry> Michael H. Koonce<sbr/>  Secretary<sbr/>  DOB: 4/20/1960<sbr/>  Term of office since: 2000 </entry>
                     <entry> Principal occupations: Senior Vice President and General Counsel, Evergreen Investment Services, Inc.; Secrtary, Senior Vice President and General Counsel, Evergreen InvestmentManagement Company, LLC and Evergreen Service Company, LLC; Senior Vice President and Assistant General Counsel, Wachovia Corporation
                           <footnoteref alt="1" idref="577390002" label="3" order="1" size="1" type="button" value="577390002"/>
                           <footnoteref alt="1" idref="577400002" label="4" order="1" size="1" type="button" value="577400002"/>
                           <footnoteref alt="1" idref="577410002" label="5" order="1" size="1" type="button" value="577410002"/> </entry>
               
                     </row>
                     <row condition="TT1L">
                        <entry> James Angelos<sbr/> Chief Compliance Officer<sbr/> DOB: 9/2/1947<sbr/> Term of office since: 2004 </entry>
                        <entry> Principal occupations: Chief Compliance Officer, Evergreen Funds and Senior Vice President of Evergreen Investments Co, Inc; Former Director of Compliance, Evergreen Investment Services,Inc<footnoteref alt="1" idref="577420002" label="6" order="1" size="1" type="button" value="577420002"/>
                           <footnoteref alt="1" idref="57743" label="7" order="1" size="1" type="button" value="57743"/>
                           <footnoteref alt="1" idref="57744" label="8" order="1" size="1" type="button" value="57744"/>
                        </entry>
                  </row>
            </tbody>
         </table>
      </sec>
   </chapter>
</book>

Note: I am using PipelinedComparator to compare the files. If you see the difference between the expected result and the got result, the result that i got is collapsed blacklining.

Here in the old xml I have a table with two rows with footnoteref element and in the new xml i have deleted the first row. I compared the two xmls. In the diff xml I have the result as the first row as modified and the second row as deleted.
What can I do to resolve this problem. I am helpless. Could you help me how to do?
DeltaXML Core > "ERROR: Could not find dxp file with id 'docbook'"
Joined: 15-April-2008
Posts: 23
Location: , Canada
Posted: 07-July-2008 15:15
"ERROR: Could not find dxp file with id 'docbook'"
Likely should have made this a new thread in the first place....

I'm trying to evaluate Core 5.0 now, and getting the "ERROR: Could not find dxp file with id 'docbook'" error message when I run:

"java -jar command.jar compare docbook ../../../docs/xmllint_temporary1.xml ../../../docs/xmllint_temporary2.xml docbook-result.xml ../../../docs/outfile.xml"

The xmllint files are just files that have had their Xinclude elements consolidated by XMLlint.

I've downloaded the latest evaluation version of Core. I suspect that this is just a config issue.

DeltaXML Core > docbookinfilter.xsl, docbookoutfilter.xm, and Docbook 5 (namespaces)
Joined: 15-April-2008
Posts: 23
Location: , Canada
Posted: 07-July-2008 002:12
Forgot to mention
I'm using docbook 5 with a RelaxNG schema.
DeltaXML Core > docbookinfilter.xsl, docbookoutfilter.xm, and Docbook 5 (namespaces)
Joined: 15-April-2008
Posts: 23
Location: , Canada
Posted: 07-July-2008 002:10
ERROR: Could not find dxp file with id 'docbook'
Hi Nigel,

I'm trying to evaluate Core 5.0 now, and getting the "ERROR: Could not find dxp file with id 'docbook'" error message when I run:

"java -jar command.jar compare docbook ../../../docs/xmllint_temporary1.xml ../../../docs/xmllint_temporary2.xml docbook-result.xml ../../../docs/outfile.xml"

The xmllint files are just files that have had their Xinclude elements consolidated by XMLlint.




Filters > Ignore an element
Joined: 28-March-2007
Posts: 18
Location: Salisbury, UK
Posted: 06-June-2008 16:07
Re: Ignore an element
Hi Arul,

Thanks for the question. There are various ways to ignore an element during the comparison. I have outlined a couple below.

The simplest solution is to remove the element you wish to ignore before comparing. All this requires a simple input filter. It does mean that the element isn't in the result file at all, this may of course not be what you require.

Another possible solution is to leave the element in for comparison but then convert it back to the version that was in one of the input documents. This requires an output filter and again, this should be relatively easy to write. Take a look at dx2-extract-version.xsl in the xsl samples directory for an example of how to output a particular version of an element (or in the case of the XSL filter, the whole file).

These are just a couple of suggestions, if you could provide a more detailed example of what you are trying to achieve, we will be able to give you some more relevant help with a solution.

Many thanks,

Tristan
Filters > Ignore an element
Joined: 19-June-2008
Posts: 4
Posted: 06-June-2008 007:47
Ignore an element
I would like to know how to ignore an element. Defining keys based on the id attribute is not appropriate in this case.
Could you provide me some samples for ignoring an element?
Filters > ignore all attributes of an element
Joined: 19-June-2008
Posts: 4
Posted: 06-June-2008 15:22
Hai chrisc
Thanks for your support. It works fine now. I am also in need of another help. I would like to know how to ignore an element. I looked out for samples in your site. I got samples only for ignoring some attributes.

Could you provide me some samples for ignoring an element?

Thanks,
Arul