OASIS Open Document Format for Office Applications (OpenDocument) TC

Proposal: document event listeners

  • 1.  Proposal: document event listeners

    Posted 08-19-2004 14:53
     MHonArc v2.5.0b2 -->
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    

    office message

    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


    Subject: Proposal: document event listeners


    Hi all,
    
    Some time ago, I've proposed to replace the <office:script> element with 
    a new <office:scripts> element, see
    
    http://lists.oasis-open.org/archives/office/200311/msg00007.html
    
    We agreed to this proposal with a few modifications. I now noticed that 
    the former <office:script> element did not only contain script code 
    (that's what I have assumed in my proposal), but also event (listener) 
    specifications for document related events like "on-load" or "on-close".
    
    That is, the former <office:script> element did not only contain 
    elements for script code, but optionally could also contain a 
    <office:events> element, for event (listener) specifications. The new 
    <office:scripts> element can only contain elements for script code, but 
    no event specifications. So there is no place existing for document 
    related event listerners now.
    
    To solve this issue, I suggest to add the <office:event-listners> 
    element as an option child to the <office:scripts> element. The 
    <office:scripts> element then looks like this:
    
    <define name="office-scripts">
    	<optional>
    		<element name="office:scripts">
    			<oneOrMore>
    				<ref name="office-script"/>
    			</oneOrMore>
    			<optional>
    				<ref name="office-event-listeners"/>
    			</optional>
    		</element>
    	</optional>
    </define>
    
    Best regards
    
    Michael
    
    


    [Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]