XSD: lepší schéma pro komentáře a povolíme blockquote.
1.1 --- a/java/nekurak.net-web/web/styl.css Wed Oct 12 19:43:13 2011 +0200
1.2 +++ b/java/nekurak.net-web/web/styl.css Mon Nov 07 20:31:08 2011 +0100
1.3 @@ -292,6 +292,15 @@
1.4 margin-bottom: 8px;
1.5 }
1.6
1.7 +blockquote {
1.8 + background-color: #eee;
1.9 + font-style: italic;
1.10 + padding: 2px 20px;
1.11 + margin: 10px 32px;
1.12 + border-left: 3px solid silver;
1.13 +}
1.14 +
1.15 +
1.16 ul.stitky {
1.17 margin: 0;
1.18 padding: 0 0 32px 0;
2.1 --- a/xml/komentář.xsd Wed Oct 12 19:43:13 2011 +0200
2.2 +++ b/xml/komentář.xsd Mon Nov 07 20:31:08 2011 +0100
2.3 @@ -1,21 +1,46 @@
2.4 <?xml version="1.0" encoding="UTF-8" ?>
2.5
2.6 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
2.7 -
2.8 - <xs:element name="div">
2.9 - <xs:complexType>
2.10 - <xs:choice minOccurs="1" maxOccurs="unbounded">
2.11 - <xs:element name="p">
2.12 - <xs:complexType mixed="true">
2.13 - <xs:choice minOccurs="0" maxOccurs="unbounded">
2.14 - <xs:element name="em" type="xs:string"/>
2.15 - <xs:element name="strong" type="xs:string"/>
2.16 - <xs:element name="br"/>
2.17 - </xs:choice>
2.18 - </xs:complexType>
2.19 - </xs:element>
2.20 - </xs:choice>
2.21 - </xs:complexType>
2.22 - </xs:element>
2.23 +
2.24 + <xs:element name="div" type="blokovýElement" />
2.25 +
2.26 + <xs:complexType name="blokovýElement">
2.27 + <xs:choice minOccurs="1" maxOccurs="unbounded">
2.28 + <xs:element name="p" type="řádkovýElement" />
2.29 + <xs:element name="blockquote">
2.30 + <xs:complexType mixed="false">
2.31 + <xs:choice minOccurs="1" maxOccurs="unbounded">
2.32 + <xs:element name="p" type="řádkovýElement" />
2.33 + </xs:choice>
2.34 + </xs:complexType>
2.35 + </xs:element>
2.36 + </xs:choice>
2.37 + </xs:complexType>
2.38 +
2.39 + <xs:complexType name="řádkovýElement" mixed="true">
2.40 + <xs:choice minOccurs="0" maxOccurs="unbounded">
2.41 + <xs:element name="em" type="řádkovýElement">
2.42 + <xs:annotation>
2.43 + <xs:documentation>Zvýrazněné písmo – obvykle kurzíva.</xs:documentation>
2.44 + </xs:annotation>
2.45 + </xs:element>
2.46 + <xs:element name="strong" type="řádkovýElement">
2.47 + <xs:annotation>
2.48 + <xs:documentation>Zvýrazněné písmo – obvykle tučné.</xs:documentation>
2.49 + </xs:annotation>
2.50 + </xs:element>
2.51 + <xs:element name="br" type="prázdnýElement">
2.52 + <xs:annotation>
2.53 + <xs:documentation>Zalomení řádku.</xs:documentation>
2.54 + </xs:annotation>
2.55 + </xs:element>
2.56 + </xs:choice>
2.57 + </xs:complexType>
2.58 +
2.59 + <xs:complexType name="prázdnýElement">
2.60 + <xs:complexContent>
2.61 + <xs:restriction base="xs:anyType" />
2.62 + </xs:complexContent>
2.63 + </xs:complexType>
2.64
2.65 </xs:schema>