Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-update-dev] XML element order problem


Gotcha.  Didn't realize DTD's implied ordering.  I can live with this.

Patrick Mueller
patrick_mueller@xxxxxxx



klicnik@xxxxxxxxxx
Sent by: platform-update-dev-admin@xxxxxxxxxxx

05/08/2002 05:12 PM
Please respond to platform-update-dev

       
        To:        platform-update-dev@xxxxxxxxxxx
        cc:        
        Subject:        Re: [platform-update-dev] XML element order problem



Patrick, we could argue that the parser should not be validating the xml
files based on the specified DTD, but it currently does validate that the
input follows the specified DTD. The DTDs (for feature.xml and site.xml
respectively) include the following definitions

<!ELEMENT feature (install-handler?, description?, copyright?, license?,
url?, includes*, requires?, plugin*, data*)>

<!ELEMENT site (description?, feature*, archive*, category-def*)>

Both imply element ordering (? optional (0 or 1), * optional (0 or more))





                                                                                                                               
                   Patrick_Mueller@xxxxxxx                                                                                    
                   Sent by:                          To:     platform-update-dev@xxxxxxxxxxx                                  
                   platform-update-dev-admin@e       cc:                                                                      
                   clipse.org                        Subject:     [platform-update-dev] XML element order problem              
                                                                                                                               
                                                                                                                               
                   05/08/2002 04:48 PM                                                                                        
                   Please respond to                                                                                          
                   platform-update-dev                                                                                        
                                                                                                                               
                                                                                                                               




In my playing with update on M5, I've found that in the feature.xml, the
<data> element needs to be after any <plugin> elements, or else the parser
croaks.

Likewise in site.xml, <category-def> elements had to be at the bottom; not
sure if they had to be after they were referenced in <category> tags, or
had to be after <features>, or what.

Do you know about these anomolies?  Should I bugzilla?

Patrick Mueller
patrick_mueller@xxxxxxx


_______________________________________________
platform-update-dev mailing list
platform-update-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-update-dev



Back to the top