# Simple makefile to validate XML files and to generate HTML using SAXON. This
# makefile requires you to hardcode the names of the XML/XSL/HTML files
# directly in the rules listed below. This process can be tedious if you have
# many XML files.
JAVA = java
JAVAFLAGS = -cp "/u/csc309h/lib:/u/csc309h/lib/saxon.jar:/u/csc309h/lib/xerces.jar"
processxml:
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml base.xsl > base.html
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml extension.xsl >extension.html
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml side.xsl >side.html
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml back.xsl >back.html
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml door.xsl >door.html
$(JAVA) $(JAVAFLAGS) com.icl.saxon.StyleSheet items.xml others.xsl >others.html
.PHONY: validatexml
validatexml:
$(JAVA) $(JAVAFLAGS) Validator -v items.xml
.PHONY: clean
clean:
/bin/rm -f modules.html
/bin/rm -f base.html
/bin/rm -f extension.html
/bin/rm -f side.html
/bin/rm -f back.html
/bin/rm -f door.html
/bin/rm -f others.html
NOTE:
NOTE: BASE UNIT
NAME:
DIMENSION:
HEIGHT:
AVAILABILITY:
EXPECTED_SHIPPING_TIME:
FINISH_OPTION:
Material:
Price
EXTENSION UNIT
NAME:
DIMENSION:
HEIGHT:
AVAILABILITY:
EXPECTED_SHIPPING_TIME:
FINISH_OPTION:
Material:
Price
DOOR UNIT
NAME:
DIMENSION:
HEIGHT:
AVAILABILITY:
EXPECTED_SHIPPING_TIME:
FINISH_OPTION:
Material:
Price
SIDE UNIT
NAME:
DIMENSION:
HEIGHT:
AVAILABILITY:
EXPECTED_SHIPPING_TIME:
FINISH_OPTION:
Material:
Price
OTHER UNITS
DIMENSION:
HEIGHT:
AVAILABILITY:
EXPECTED_SHIPPING_TIME:
FINISH_OPTION:
Color:
Price
/* modules.css used for formating html files * changing color or font style or font size */
body {background-image:url("bg.jpg")}
p.catagory {font-style: italic; font-size:250%; color: blue}
H1 {color: red}
H2{color: darkblue}
p.note {color:darkred}
p.others {color:darkred; font-size:250%; font-style: italic}
/* define the hyperlink color */
a {color:#006699;}
a:link, a:visited, a:active{text-decoration:underline}
p{color:darkblue} ol{font-style:italic}
/* make the underline part colorful */
u{color:#CC0033}