добавила дтд... вторая лаба готова?

This commit is contained in:
Елена Бакальская 2024-10-02 11:55:51 +04:00
parent 88e0f42962
commit 4680c11e7a
4 changed files with 19 additions and 1 deletions

View File

@ -10,7 +10,7 @@
border-collapse: collapse; border-collapse: collapse;
} }
th, td { th, td {
border: 1px solid black; border: 3px solid rgb(255, 150, 100);
padding: 8px; padding: 8px;
text-align: center; text-align: center;
} }

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="XMLStyles.xslt"?> <?xml-stylesheet type="text/xsl" href="XMLStyles.xslt"?>
<!DOCTYPE animals SYSTEM "animals.dtd">
<animals> <animals>
<animal id="1"> <animal id="1">

16
miakd/animals.dtd Normal file
View File

@ -0,0 +1,16 @@
<!ELEMENT animals (animal+)>
<!ELEMENT animal (name, size, weight, color, diet, habitat, interestingFact)>
<!ATTLIST animal id ID #REQUIRED>
<!ELEMENT name (#PCDATA)>
<!ELEMENT size (width, height)>
<!ELEMENT width (#PCDATA)>
<!ELEMENT height (#PCDATA)>
<!ELEMENT weight (#PCDATA)>
<!ELEMENT color (#PCDATA)>
<!ELEMENT diet (food, averageIntake)>
<!ELEMENT food (#PCDATA)>
<!ELEMENT averageIntake (#PCDATA)>
<!ELEMENT habitat (#PCDATA)>
<!ELEMENT interestingFact (#PCDATA)>

View File

@ -86,6 +86,7 @@
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource> </EmbeddedResource>
<None Include="animals.dtd" />
<None Include="Properties\Settings.settings"> <None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator> <Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput> <LastGenOutput>Settings.Designer.cs</LastGenOutput>