2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License
, v.
2.0. If a copy of the MPL was not distributed with this
6 * file
, You can obtain one at http
://mozilla.org
/MPL
/2.0/.
8 * This file incorporates work covered by the following license notice
:
10 * Licensed to the Apache Software
Foundation (ASF
) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License
, Version
2.0 (the
"License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http
://www.apache.org
/licenses
/LICENSE
-2.0 .
19 <!ELEMENT script
:libraries (script
:library
-embedded | script
:library
-linked
)*>
20 <!ATTLIST script
:libraries xmlns
:script CDATA #FIXED
"http://openoffice.org/2000/script">
21 <!ATTLIST script
:libraries xmlns
:xlink CDATA #FIXED
"http://www.w3.org/1999/xlink">
23 <!ENTITY
% boolean
"(true|false)">
25 <!ELEMENT script
:library
-embedded (script
:module*)
>
26 <!ATTLIST script
:library
-embedded script
:name
%string
; #REQUIRED
>
27 <!ATTLIST script
:library
-embedded script
:readonly
%boolean
; #IMPLIED
>
29 <!ELEMENT script
:library
-linked EMPTY
>
30 <!ATTLIST script
:library
-linked script
:name
%string
; #REQUIRED
>
31 <!ATTLIST script
:library
-linked xlink
:href
%string
; #REQUIRED
>
32 <!ATTLIST script
:library
-linked xlink
:type (simple
) #FIXED
"simple">
33 <!ATTLIST script
:library
-linked script
:readonly
%boolean
; #IMPLIED
>
35 <!ELEMENT script
:module (script
:source
-code
)>
36 <!ATTLIST script
:module script
:name
%string
; #REQUIRED
>
38 <!ELEMENT script
:source
-code (#PCDATA
)>
41 <!ENTITY
% script
-language
"script:language %string; #REQUIRED">
42 <!ENTITY
% event
-name
"script:event-name %string; #REQUIRED">
43 <!ENTITY
% location
"script:location (document|application) #REQUIRED">
44 <!ENTITY
% macro
-name
"script:macro-name %string; #REQUIRED">
46 <!ELEMENT script
:event (#PCDATA
)>
47 <!ATTLIST script
:event
%script
-language
;