Question
REQUIREMENT: Submit an Assignment REPORT that shows your initial XML and DTD with at least 2 RECORDS and then proceed to modify the XML and
REQUIREMENT: Submit an Assignment REPORT that shows your initial XML and DTD with at least 2 RECORDS and then proceed to modify the XML and DTD and clearly document your changes at each stop. You can include the same files in your Report. Include any output from Web Based validation tool. For the 1st exercise (ONLY) write/show the corresponding XSD and/or XSL as well as an XSLT (XML Schema Transformation) to display at least 2 records to the output in HTML through a browser.Include any output displayed in a Web Browser.
Consider the following CONSTRAINTS when during your XML validation:
The number of flours should be limited to: 1, 2 or 3
Siding should be limited to: brick or vinyl
All other fields should be Character Data or Parsed Character Data (CDATA or PCDATA)
Create an XML document with the following sample real estate data
Root element real-estate will contain a sequence of sub-elements: agencies, owners, properties and flats, all with an empty content
Ensure well-formedness
Create an internal DTD for the previous XML document
Ensure its validity
Then try to break it with invalid field data
Move the previous DTD to an external file and validate the XML document again
Extend the previous DTD such thatElements agencies, owners, properties and flats can now contain particular agency, owner, property and flat elements respectively
Agency = name, e-mail, phone
Owner = name
Property = name, description, number of flats, features, owner reference
Flat = name, description, features, property reference
Use attributes for references, otherwise elements
Use only CDATA and #PCDATA for content and values
Extend the XML document such that it contains 1 sample agency, 1 owner, 1 property, and 2 flats
Ensure well-formedness and validity
Modify both the DTD and XML:Description of properties
may now contain a text with references to flats
Description of flats
Now contains a structured description with an arbitrary, but still well-formed XML fragment
Extend both the DTD and XML:Agencies, owners and properties must now have right one address (directly after their name)Each address consists of:
Street and number
Postal code
State
Country
Respect the order, but note also that country is optional and when missing, postal code must be placed at the end (i.e. after state and not before)
Modify both the DTD and XML:
Address, e-mail and phone records of agencies may now be specified in an arbitrary order
Ensure that there are at least 2 flats
If features (of properties and flats) are specified, then at least 2 and at most 5 of them are provided
Extend both the DTD and XML:
Flats can now be associated with internal records
Each record contains
Date and additional textual information, or
sequence of at least one nested record
Modify and extend both the DTD and XML:
Add language attribute to the root element
The value needs to be fixed to EN
Add comfort level attribute to flats
Only A, B, C, D, E or F values are allowed
F is the default value
References to owners of properties are now optional
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started