xml/config.rnc
author František Kučera <franta-hg@frantovo.cz>
Fri, 03 Jan 2014 21:36:00 +0100
branchv_0
changeset 123 248a98c13ca4
parent 120 940681695aa4
child 198 03d8492e2ca8
permissions -rw-r--r--
TabularWrappingFormatter – first version
franta-hg@120
     1
# SQL-DK
franta-hg@120
     2
# Copyright © 2013 František Kučera (frantovo.cz)
franta-hg@120
     3
# 
franta-hg@120
     4
# This program is free software: you can redistribute it and/or modify
franta-hg@120
     5
# it under the terms of the GNU General Public License as published by
franta-hg@120
     6
# the Free Software Foundation, either version 3 of the License, or
franta-hg@120
     7
# (at your option) any later version.
franta-hg@120
     8
# 
franta-hg@120
     9
# This program is distributed in the hope that it will be useful,
franta-hg@120
    10
# but WITHOUT ANY WARRANTY; without even the implied warranty of
franta-hg@120
    11
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
franta-hg@120
    12
# GNU General Public License for more details.
franta-hg@120
    13
# 
franta-hg@120
    14
# You should have received a copy of the GNU General Public License
franta-hg@120
    15
# along with this program. If not, see <http://www.gnu.org/licenses/>.
franta-hg@120
    16
franta-hg@113
    17
default namespace = "https://sql-dk.globalcode.info/xmlns/configuration"
franta-hg@113
    18
franta-hg@113
    19
start =
franta-hg@113
    20
	element configuration {
franta-hg@113
    21
		
franta-hg@113
    22
		element database {
franta-hg@113
    23
			element name { text },
franta-hg@113
    24
			element url { text },
franta-hg@113
    25
			element userName { text }?,
franta-hg@113
    26
			element password { text }?,
franta-hg@113
    27
			element property {
franta-hg@113
    28
				attribute name { text },
franta-hg@113
    29
				text
franta-hg@113
    30
			}*
franta-hg@113
    31
		}*,
franta-hg@113
    32
		
franta-hg@113
    33
		element defaultFormatter { text }?,
franta-hg@113
    34
		
franta-hg@113
    35
		element formatter {
franta-hg@113
    36
			element name { text },
franta-hg@113
    37
			element class { text },
franta-hg@113
    38
			element property {
franta-hg@113
    39
				attribute name { text },
franta-hg@113
    40
				text
franta-hg@113
    41
			}*
franta-hg@113
    42
		}*
franta-hg@113
    43
	}