Opened 8 years ago

Closed 6 years ago

Last modified 6 years ago

#103 closed enhancement (fixed)

Add attribute 'comment' to all objects ?

Reported by: ssenesi Owned by: ymipsl
Priority: minor Component: XIOS
Version: 2.0 Keywords:
Cc:

Description

For the sake of documenting xml files and their components, it would be helpful to be able to insert comment strings for every object, INSIDE the brackets enclosing the object. Maybe there is an XML syntax for that ? Otherwise, adding a 'comment' attribute would fit.

Change History (4)

comment:1 Changed 8 years ago by rlacroix

I'm not completely sure if it's what you want but XML syntax for comments is <!-- Write your comments here -->.

comment:2 Changed 8 years ago by ssenesi

Thanks, I already learned that witgout having to read XML doc.
What I would like is :

to be alble to insert comment strings for every object, INSIDE the brackets enclosing the object

An example would help :
<axis id="p17" comment="This holds 17 pressure levels" ...>

This makes a semantic difference : the comment is attached to the object; this could help at a later stage

This makes a practical difference : the syntax is lighter

comment:3 Changed 6 years ago by oabramkina

  • Resolution set to fixed
  • Status changed from new to closed

Done for the following objects: axis, calendar, domain, field, file, grid, scalar.
Will be added for other objects upon request.

comment:4 Changed 6 years ago by ssenesi

Thanks. The list of objects looks fine

Note: See TracTickets for help on using tickets.