From 024c2d61d7bf9e4b62605a0b4534c6638db365a1 Mon Sep 17 00:00:00 2001 From: VishnuSanal Date: Sun, 21 Jul 2024 19:20:35 +0530 Subject: [PATCH] use RNC --- strings.rnc | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 strings.rnc diff --git a/strings.rnc b/strings.rnc new file mode 100644 index 00000000..0bd482c3 --- /dev/null +++ b/strings.rnc @@ -0,0 +1,37 @@ +start = + element resources { +# element string { +# attribute name { xsd:NCName }, +# attribute translatable { xsd:boolean }?, +# ( +# xsd:string { minLength = "1" } +# ) +# }+ | + element string { + attribute name { xsd:NCName }, + attribute translatable { xsd:boolean }?, + ( + ( xsd:string { minLength = "1" } ) + | element html { + element body { + (text + | element a { + attribute href { xsd:anyURI }, + attribute target { xsd:NCName }, + xsd:NCName + } + | element b { text } + | element font { + attribute color { text }, + (text + | element i { text })+ + })+ + } + })+ + }+ + } + + +#attribute text { +# xsd:string { maxLength = "25" } +#} \ No newline at end of file