Madlik, Monika (LNG-VIE) wrote:
> 
> so, is it possible for me to write an instance of generic, parametrizable, 
> table editor command with which I map my elements onto the elements of 
> docbook and afterwards using the docbook functions?

Yes, but in the case of CALS tables, you'll get a table editor *much*
*less* *powerful* than com.xmlmind.xmleditapp.docbook.table.CALSTableEdit



> I tried to write such an instance: 
> 
> <command name="ln.calsTableEdit">
>       <class>com.xmlmind.xmleditapp.tableedit.GenericTableEdit</class>
> </command>
> 
> <property name="ln.calsTableEdit.tableSpecification">
>       table=calstable
>       row=row
>       cell=entry
> </property>

A better specification would be
---
table=calstable entrytbl
rowGroup=tbody thead tfoot
row=row
cell=entry
rowSpan=morerows+1
---
See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/tableEdit.html



> But everytime I try to open an XML-File I get the message: "Kann folgende 
> Kommandos nicht registrieren: 
> Kann Kommando "ln.calsTableEdit" anmelden: 
> com.xmlmind.xmleditapp.tableedit.GenericTableEdit"

com.xmlmind.xmleditapp.tableedit.GenericTableEdit is only available in
v3.2 and above.
My guess is that you are using a version older than v3.2. If this is not
the case, do not hesitate to send other emails so we can solve your problem


---
PS: We have used GenericTableEdit in two custom configurations developed
for Renault F1 Team. What follows are excerpts of these two configurations:

---
  <property name="doc.tableEdit.tableSpecification">
    table={http://fr.renault-sport-f1.com/schema/document}rang?es
    row={http://fr.renault-sport-f1.com/schema/document}rang?e
    cell={http://fr.renault-sport-f1.com/schema/document}cellule
    rowSpan=rang?es
    columnSpan=colonnes
  </property>

  <command name="doc.tableEdit">
    <class>com.xmlmind.xmleditapp.tableedit.GenericTableEdit</class>
  </command>
---

---
  <property name="srml.tableEdit.tableSpecification">
    table=table
    row=tr
    cell=td
    columnSpan=colspan
  </property>

  <command name="srml.tableEdit">
    <class>com.xmlmind.xmleditapp.tableedit.GenericTableEdit</class>
  </command>
---






Reply via email to