(DTD) Below ** DO NOT ADD YOUR PERSONAL SIGNATURE TO FILE THANKS
1) Open up the [url removed, login to view] file in your text editor.
TASK 1: Use the DTD to draw out the XML tree structure for the file. Create the XML tree structure using MS Word or Google Docs
2) Use XML tree structure to make correct XPath statements in XSLT stylesheets.
TASK 2: With the tree structure, create an XSLT stylesheet for [url removed, login to view] that will create a table with the following column labels:
Volume, Number, Title, Start Page, End Page, Page Length.
-Choose a good value of "select" for-each select statement. Most of the columns in the table represent children of element “article”. Therefore element “article” might be one good suggestion. However, you can’t just enter select="article". This statement would imply that article is a child element of [url removed, login to view] that XPath and place its value in the select field of the for-each statement.
- Column Page Length – create formula for page length so that an article that starts and finishes on page 5 gets counted as being 1 page long rather than 0 pages.
*Replace nodeX and nodeY with real elements from sigmod.xml.
-Finally, save [url removed, login to view] and put a reference to it in [url removed, login to view] after the DTD code.
-Open up [url removed, login to view] (not [url removed, login to view]!) in Firefox and you should see your new, working table. If not, fix the errors in your .xsl file.
<!DOCTYPE SigmodRecord [
DTD (Please ignore underlines "____" "____"
____ <!DOCTYPE SigmodRecord [ ____
____ <!ELEMENT issue (volume,number,articles) > ____
____ <!ELEMENT volume (#PCDATA)> ____
____ <!ELEMENT number (#PCDATA)> ____
____ <!ELEMENT articles (article)* > **
____ <!ELEMENT article (title,initPage,endPage,authors) > ____
____ <!ELEMENT title (#PCDATA)> ____
____ <!ELEMENT initPage (#PCDATA)> ____
____ <!ELEMENT endPage (#PCDATA)> ____
____ <!ELEMENT authors (author)* > ____
____ <!ELEMENT author (#PCDATA)> ____
____ <!ATTLIST author position CDATA #IMPLIED> ____
____ (contains text/#PCDATA) ____