RelaxNG/publidoc.rnc
changeset 111 44de27e5c6cf
parent 109 78dceeeda33a
child 112 5f3d6d357c74
equal deleted inserted replaced
110:aaa57397763e 111:44de27e5c6cf
   316 
   316 
   317 image.attributes =
   317 image.attributes =
   318    media.id.attribute
   318    media.id.attribute
   319  & image.type?
   319  & image.type?
   320 media.id.attribute = attribute id { xsd:NMTOKEN }
   320 media.id.attribute = attribute id { xsd:NMTOKEN }
   321 image.type = attribute type { "cover" | "thumbnail" | "icon" }
   321 image.type = attribute type { "thumbnail" | "icon" }
   322 
   322 
   323 image.content =
   323 image.content =
   324    tooltip*,
   324    copyright?,
   325    copyright?
   325    tooltip*
   326 
   326 
   327 # ~~~~~~ audio
   327 # ~~~~~~ audio
   328 audio = element audio { audio.attributes }
   328 audio = element audio { audio.attributes }
   329 
   329 
   330 audio.attributes =
   330 audio.attributes =
   339 tooltip.attributes =
   339 tooltip.attributes =
   340    x.attribute
   340    x.attribute
   341  & y.attribute
   341  & y.attribute
   342  & dx.attribute?
   342  & dx.attribute?
   343  & dy.attribute?
   343  & dy.attribute?
   344 x.attribute = attribute x { xsd:token {pattern = "\d{1,3}%"} }
   344 x.attribute = attribute x { xsd:token {pattern = "\d{1,2}%"} }
   345 y.attribute = attribute y { xsd:token {pattern = "\d{1,3}%"} }
   345 y.attribute = attribute y { xsd:token {pattern = "\d{1,2}%"} }
   346 dx.attribute = attribute dx { xsd:token {pattern = "-?\d{1,3}%"} }
   346 dx.attribute = attribute dx { xsd:token {pattern = "-?\d{1,2}"} }
   347 dy.attribute = attribute dy { xsd:token {pattern = "-?\d{1,3}%"} }
   347 dy.attribute = attribute dy { xsd:token {pattern = "-?\d{1,2}"} }
   348 
   348 
   349 tooltip.content =
   349 tooltip.content =
   350    (p | image)+
   350    (p | image)+
   351    
   351    
   352 # ~~~~~~ media.caption
   352 # ~~~~~~ media.caption