RelaxNG/publimeta.rnc
changeset 262 2906cd61506b
parent 260 a904cb6b2760
child 263 b6ac75b447ae
equal deleted inserted replaced
261:c1f4a6143ded 262:2906cd61506b
    45  & contributors?
    45  & contributors?
    46  & date?
    46  & date?
    47  & keywordset?
    47  & keywordset?
    48  & subjectset?
    48  & subjectset?
    49  & abstract?
    49  & abstract?
    50  & price?
    50  & price*
    51 
    51 
    52 
    52 
    53 # =============================================================================
    53 # =============================================================================
    54 #                                  METADATA LEVEL
    54 #                                  METADATA LEVEL
    55 # =============================================================================
    55 # =============================================================================
   165 
   165 
   166 price = element price { price.attributes, price.content }
   166 price = element price { price.attributes, price.content }
   167 
   167 
   168 price.attributes =
   168 price.attributes =
   169    currency.attribute
   169    currency.attribute
   170 currency.attribute = attribute currency { "EUR" | "USD" }
   170  & excluding_tax.attribute
       
   171  & tax.attribute?
       
   172 currency.attribute = attribute currency {
       
   173    "EUR" | "USD" | "GBP" | "CAD" | "CHF" | "JPY" | "MXN" | "KRW" | "BRL"
       
   174  | "INR" | "AUD" | "RUB" | "CNY" | "NOK" | "SEK" | "DKK" }
       
   175 excluding_tax.attribute = attribute excluding-tax { xsd:boolean }
       
   176 tax.attribute = attribute tax { xsd:float }
   171 
   177 
   172 price.content = xsd:float
   178 price.content = xsd:float
   173    
   179    
   174 
   180 
   175 # =============================================================================
   181 # =============================================================================