mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
[xml/ru] DTD
This commit is contained in:
parent
ebe5ab6a72
commit
e3d683d8ec
@ -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)>
|
||||||
]>
|
]>
|
||||||
|
Loading…
Reference in New Issue
Block a user