xml/config.rnc
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 15:49:57 +0100
branchv_0
changeset 232 4061e0c7f907
parent 203 504c4ba56d1c
child 249 7655df0622ee
permissions -rw-r--r--
c++: recognize batch mode
     1 # SQL-DK
     2 # Copyright © 2013 František Kučera (frantovo.cz)
     3 # 
     4 # This program is free software: you can redistribute it and/or modify
     5 # it under the terms of the GNU General Public License as published by
     6 # the Free Software Foundation, either version 3 of the License, or
     7 # (at your option) any later version.
     8 # 
     9 # This program is distributed in the hope that it will be useful,
    10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
    11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    12 # GNU General Public License for more details.
    13 # 
    14 # You should have received a copy of the GNU General Public License
    15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
    16 
    17 default namespace = "https://sql-dk.globalcode.info/xmlns/configuration"
    18 
    19 start =
    20 	element configuration {
    21 		
    22 		element database {
    23 			element name { text },
    24 			element url { text },
    25 			element userName { text }?,
    26 			element password { text }?,
    27 			element driver { text }?,
    28 			element property {
    29 				attribute name { text },
    30 				text
    31 			}*,
    32 			element tunnel {
    33 				element command { text },
    34 				element argument {
    35 					attribute type { "literal" | "host" | "port" | "env" | "dbProperty" }?,
    36 					text
    37 				}*
    38 			}?
    39 		}*,
    40 		
    41 		element defaultFormatter { text }?,
    42 		
    43 		element formatter {
    44 			element name { text },
    45 			element class { text },
    46 			element property {
    47 				attribute name { text },
    48 				text
    49 			}*
    50 		}*
    51 	}