Menu ▾ ▴

#3 More Smart Insert Options

open
nobody
5
2002-02-01
2002-02-01
Anonymous
No

Hi,

Given a schema to a XML file (DTD or XML Schema)
couldn't the Insert menus consider the current
selected tag and show the child tags as menu options?

Usgin this simple example:

<!ELEMENT BookStore (Book+) >
<!ELEMENT Book (Title,Author,Date,ISBN,Publisher) >
<!ELEMENT Title EMPTY >
<!ATTLIST Title name CDATA #REQUIRED >
<!ELEMENT Author EMPTY >
<!ATTLIST Author name CDATA #REQUIRED >
<!ELEMENT Date EMPTY >
<!ATTLIST Date value CDATA #REQUIRED >
<!ELEMENT ISBN EMPTY >
<!ATTLIST ISBN value CDATA #REQUIRED >
<!ELEMENT Publisher EMPTY >
<!ATTLIST Publisher name CDATA #REQUIRED >

When the popup menu where requested over the Book tag
the options "Insert Title", "Insert Author", "Insert
Date", "Insert ISBN", "Insert Publisher" should be
shown.

This would help a lot! :D

Telmo

Discussion


Log in to post a comment.