From: Jan Kupec Date: Wed, 27 Feb 2008 18:41:19 +0000 (+0000) Subject: - made more compact X-Git-Tag: BASE-SuSE-Linux-11_0-Branch~383 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ab83d88a2e5bee2d0d638e67d43780900356ddb;p=platform%2Fupstream%2Fzypper.git - made more compact --- diff --git a/src/output/xmlout.rnc b/src/output/xmlout.rnc index 91650f2..4ef5cc4 100644 --- a/src/output/xmlout.rnc +++ b/src/output/xmlout.rnc @@ -1,18 +1,22 @@ -# !! still WORK IN PROGRESS !! +# !! still WORK IN PROGRESS (untill 11.0 freeze) !! # namespace zypper -# common stuff -# progress, messages, prompts, status - -# special stuff -# updates list, installation summary, search output - start = stream-element stream-element = element stream { - ( progress-elements* | download-progress-elements* | message-element* | prompt-element* | - update-status-element* )+ + ( + # common stuff (progress, messages, prompts, status) + progress-elements* | download-progress-elements* | message-element* | prompt-element* | + + # special stuff (updates list, installation summary, search output, info) + update-status-element* | + install-summary-element* | + repo-list-element? | + solver-problem-element* | + list-element? | + info-element? + )+ } progress-elements = ( progress-element | progress-done ) @@ -62,37 +66,47 @@ prompt-element = update-status-element = element update-status { attribute version {xsd:string}, - element update-list { ( patch-update | other-update)* } + element update-list { ( patch-update | other-update )* } + } + +update-commons = + attribute name { xsd:string }, + attribute edition { xsd:string }, + element summary { text }, + element description { text }, + element license { text }, + element source { # repository + attribute url { xsd:anyURI }, + attribute alias { xsd:string } } other-update = element update { - attribute name { xsd:string }, - attribute edition { xsd:string }, - attribute kind { xsd:string }, # package, pattern, product - element summary { text }, - element description { text }, - element license { text }, - element source { # repository - attribute url { xsd:anyURI }, - attribute alias { xsd:string } - } + update-commons, + attribute kind { "package" | "pattern" | "product" } } patch-update = element update { - attribute name { xsd:string }, - attribute edition { xsd:string }, + update-commons, attribute kind { "patch" }, attribute category { xsd:string }?, # patch category (security, recommended, ...) attribute pkgmanager { xsd:boolean }, # affect package management? attribute restart { xsd:boolean }, # needs restart of the machine? - attribute interactive { xsd:boolean },# needs user interaction? - element summary { text }, - element description { text }, - element license { text }, - element source { # repository - attribute url { xsd:anyURI }, - attribute alias { xsd:string } - } + attribute interactive { xsd:boolean } # needs user interaction? } + +install-summary-element = + element install-summary { empty } # TODO + +repo-list-element = + element repo-list { empty } # TODO + +solver-problem-element = + element solver-problem { empty } # TODO + +list-element = + element list { empty } # TODO + +info-element = + element info { empty } # TODO