MPDL
Computing Research Methods Multi-Perspective Digital Library

Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...) StartingPoints has more info.
MPDL » WebsiteUnderlyingAbstractions » WebsiteUnderlyingAbstractionsLabReports

Final Report of Lab-2 by Kavitha Ashwin

For Full Version @ "weblab2-k.doc" with diagrams.

DTD (Document Type Definition):-

Building Block of XML document. 2 ways for declaration:-

  • Internal Declaration:
Example:-

Tove Jani Reminder Don't forget me this weekend

  • External Declaration:
Example:-

Tove Jani Reminder Don't forget me this weekend!

We require DTD to verify the validation of data.

  • The 5 building blocks are:-

1> Elements: are main building blocks. Eg: abcd….zzzz, pqr

2> Attributes: provides extra information about elements. Eg:

3> Entities: special meaning character, for example:- Entity References Character < < > > & & " " ' '

4> PCDATA: parsed character data (data found between start tag and end tag) Eg: abcd….zzzz, where “abcd….zzzz” is PCDATA PCDATA is text that WILL be parsed by a parser

5> CDATA: character data (data found between start tag and end tag) CDATA is text that will NOT be parsed by a parser

Using child elements is more handy than using attributes in XML. Metadata (data about data) should be stored as attributes, and that data itself should be stored as elements. Reference Example: http://w3schools.com/dtd/dtd_examples.asp

XML Schema:-

Describes structure of XML document, is an alternative to DTD. XML Schemas are the Successors of DTDs. Also known as XSD (XML Schema Definition). XML Schema became a W3C? Standard.

  • XML Schemas are more powerful than DTD:-
1> Supports Data Types 2> Uses XML Syntax 3> Secures Data Communication 4> Are Extensible

(a) XSD Simple Elements: A simple element is an XML element that contains only text. It cannot contain any other elements or attributes. (b) XSD Complex Elements: A complex element contains other elements and/or attributes.

With XML Schemas, you can also add your own restrictions to your XML elements and attributes. These restrictions are called facets.

Constraint Description
enumeration Defines a list of acceptable values
fractionDigits Specifies the maximum number of decimal places allowed. Must be equal to or greater than zero
length Specifies the exact number of characters or list items allowed. Must be equal to or greater than zero
maxExclusive Specifies the upper bounds for numeric values (the value must be less than this value)
maxInclusive Specifies the upper bounds for numeric values (the value must be less than or equal to this value)
maxLength Specifies the maximum number of characters or list items allowed. Must be equal to or greater than zero
minExclusive Specifies the lower bounds for numeric values (the value must be greater than this value)
minInclusive Specifies the lower bounds for numeric values (the value must be greater than or equal to this value)
minLength Specifies the minimum number of characters or list items allowed. Must be equal to or greater than zero
pattern Defines the exact sequence of characters that are acceptable
totalDigits Specifies the exact number of digits allowed. Must be greater than zero
whiteSpace Specifies how white space (line feeds, tabs, spaces, and carriage returns) is handled

  • Indicators: Order, Occurrence, Group.

  • Mind-Mapping:-

Downloaded mindmap from the site: http://freemind.sourceforge.net/wiki/index.php/Download

Also Created a mindmap @ weblab2-k.doc

  • mindmap.JPG:
    mindmap.JPG

Also learnt that mozilla is better than internet explorer for twiki, as while edit option in twiki when used internet explorer I couldn't perform formatting, bullets etc. But if I use mozilla I could formate, use bullets etc.

  • BrainStroming:-
1> Mindmap was fun, expressing your ideas in a tree structure helps in understanding the idea in a glance.

2> But I feel more comfortable using MS-powerpoint than mindmap as you can add more creativity in powerpoint, I kind of feel restricted in mindmap. As this version of mindmap had very less features.

3> I tried to download other softwares of mindmap but those were fancy but came with trail versions.

-- KavithaAshwin - 01 Nov 2008

r1 - 01 Nov 2008 - 12:23:51 - KavithaAshwin
Guests are welcome to view our materials. To subscribe, edit, view raw markup, etc., you'll need to register for an account. Accounts are free (and will always be free) - your involvement helps us directly and indirectly (by demonstrating that our work matters to our funders...) StartingPoints has more info.
This site is powered by the TWiki collaboration platformCopyright 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Ahatwiki? Send feedback Syndicate this site RSSATOM