This repository has been archived by the owner on Apr 10, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XML and XSD renderings along with fixed tests, and removing of some o…
…ther files that broke things.
- Loading branch information
Showing
13 changed files
with
97 additions
and
44 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
xml.instruct! | ||
xml.medical_staffs({"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"}) do | ||
@medical_staffs.each do |staff| | ||
xml.medical_staff do | ||
xml.id staff.id | ||
xml.firstname staff.firstname | ||
xml.middlename staff.middlename | ||
xml.lastname staff.lastname | ||
xml.doc_id staff.doc_id | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
xml.instruct! | ||
xml.medical_staff({"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance"}) do | ||
xml.id @medical_staff.id | ||
xml.firstname @medical_staff.firstname | ||
xml.middlename @medical_staff.middlename | ||
xml.lastname @medical_staff.lastname | ||
xml.doc_id @medical_staff.doc_id | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<element name="medical_staff"> | ||
<complexType> | ||
<sequence> | ||
<element name="id" type="integer"/> | ||
<element name="firstname" type="string"/> | ||
<element name="middlename" type="string"/> | ||
<element name="lastname" type="string"/> | ||
<element name="doc_id" type="integer"/> | ||
</sequence> | ||
</complexType> | ||
</element> | ||
</schema> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0"?> | ||
<schema xmlns="http://www.w3.org/2001/XMLSchema"> | ||
<element name="medical_staffs"> | ||
<complexType> | ||
<sequence> | ||
<element name="medical_staff" minOccurs="0" maxOccurs="unbounded"> | ||
<complexType> | ||
<sequence> | ||
<element name="id" type="integer"/> | ||
<element name="firstname" type="string"/> | ||
<element name="middlename" type="string"/> | ||
<element name="lastname" type="string"/> | ||
<element name="doc_id" type="integer"/> | ||
</sequence> | ||
</complexType> | ||
</element> | ||
</sequence> | ||
</complexType> | ||
</element> | ||
</schema> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<medical_staff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<id>1</id> | ||
<firstname>Dante</firstname> | ||
<middlename>D</middlename> | ||
<lastname>Amaral</lastname> | ||
<doc_id>4</doc_id> | ||
</medical_staff> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<medical_staffs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<medical_staff> | ||
<id>1</id> | ||
<firstname>Dante</firstname> | ||
<middlename>D</middlename> | ||
<lastname>Amaral</lastname> | ||
<doc_id>4</doc_id> | ||
</medical_staff> | ||
<medical_staff> | ||
<id>2</id> | ||
<firstname>Leonel</firstname> | ||
<middlename>D</middlename> | ||
<lastname>Marshall</lastname> | ||
<doc_id>3</doc_id> | ||
</medical_staff> | ||
<medical_staff> | ||
<id>3</id> | ||
<firstname>Medical</firstname> | ||
<middlename>D</middlename> | ||
<lastname>Staffer</lastname> | ||
<doc_id>4</doc_id> | ||
</medical_staff> | ||
</medical_staffs> |