[xml/ru] DTD

This commit is contained in:
TheDmitry 2015-02-12 12:19:54 +03:00
parent ebe5ab6a72
commit e3d683d8ec

View File

@ -77,25 +77,25 @@ XML-документ, который следует описанию докум
```xml ```xml
<!-- Below, you can see an simplified version of bookstore document, <!-- Ниже вы можете увидеть упрощенную версию документа книжного магазина,
with the addition of DTD definition.--> с дополнением DTD-определения.-->
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE note SYSTEM "Bookstore.dtd"> <!DOCTYPE note SYSTEM "Bookstore.dtd">
<bookstore> <bookstore>
<book category="COOKING"> <book category="КУЛИНАРИЯ">
<title >Everyday Italian</title> <title >Everyday Italian</title>
<price>30.00</price> <price>30.00</price>
</book> </book>
</bookstore> </bookstore>
<!-- This DTD could be something like:--> <!-- Этот DTD может быть что-то вроде:-->
<!DOCTYPE note <!DOCTYPE note
[ [
<!ELEMENT bookstore (book+)> <!ELEMENT bookstore (book+)>
<!ELEMENT book (title,price)> <!ELEMENT book (title,price)>
<!ATTLIST book category CDATA "Literature"> <!ATTLIST book category CDATA "Литература">
<!ELEMENT title (#PCDATA)> <!ELEMENT title (#PCDATA)>
<!ELEMENT price (#PCDATA)> <!ELEMENT price (#PCDATA)>
]> ]>