Menu

#14 dita values in Attribute tab false

open
nobody
None
5
2011-02-26
2011-02-26
torusJKL
No

When creating a new DITA file the user can enter the DITAArchVersion and lang values.
These values show up in the tree view and in the XML Source view.
But in the Attribute tab these two values are empty.

When adding values in the Attribute tab the source will get updated but now if you double click on the dita element the value will be empty here.

In the source view one can see that the window and tree view store the values with different tags:

when entering in the dita element window:
ditaarch:DITAArchVersion="1.2" xml:lang="en-US"

when editing in the Attributes tab:
DITAArchVersion="1.2" lang="en-US"

Discussion

  • torusJKL

    torusJKL - 2011-02-26
    • summary: dita values stored differently --> dita values in Attribute tab false
     
  • torusJKL

    torusJKL - 2011-02-26

    looking at the DITA specs the correct declaration should be
    ditaarch:DITAArchVersion="1.2" xml:lang="en-US"

    Thus the Attribute tab does not store the values correct.

     
  • Damien Guillaume

    I can confirm several bugs in Jaxe 3.4 :

    1) the default value for the DITAArchVersion attribute does not appear in the attribute window or the attribute panel (since the default is 1.2, specifying nothing for this attribute is like specifying 1.2, but this is not obvious in this case). I think this bug happens with default values specified in global attributes. I have not found exactly in the XML schema spec which value to use when a default value is specified in an attribute reference and in the referenced global attribute, but I will assume the value in the attribute reference should be used in that case.

    2) the namespace is not correctly taken into account in the attribute panel. DITAArchVersion is the same as ditaarch:DITAArchVersion for the dita element, but lang is not the same as xml:lang (the namespace is not the same), so this is a bug.

    3) a value for an attribute on the dita root element is not visible in the attribute window if specified in the attribute panel. This is caused by bug 2.

    These 3 bugs have already been fixed in the CVS development version (there is a new implementation for XML schemas), so it should work in the next version of Jaxe.

     
  • Damien Guillaume

    Actually, for bug 2, DITAArchVersion is not the same as ditaarch:DITAArchVersion (it's not the same namespace), so this is the same problem as lang and xml:lang.