This is the WebDeveloper.com XML Demo! The following output comes directly from the article.xml page, which is read by the ActiveX XML parser, which in turn uses the article.xsl Style Sheet for layout:



The following comes from the same article.xml page parsed by the Java XML parser which ships with MSIE4:

Author Title Publisher Pages Price


Below is the content of the XML file, article.xml. Note that the inline DTD is not needed for use with either the MS ActiveX XML parser or the MSIE4 Java XML parser, but it is included here just to show proper XML syntax:

<?XML VERSION = "1.0" ?>
<!DOCTYPE ARTICLE [
<!ENTITY WD "WebDeveloper">
<!ELEMENT ARTICLE (TOPIC)*>
<!ELEMENT TOPIC (TITLE,PUBLISHER,AUTHOR,PRICE,PAGES)>
<!ELEMENT TITLE (#PCDATA)>
<!ELEMENT PUBLISHER (#PCDATA)>
<!ELEMENT AUTHOR (#PCDATA)>
<!ELEMENT PRICE (#PCDATA)>
<!ELEMENT PAGES (#PCDATA)>
]>
<ARTICLE>
  <TOPIC> 
		<TITLE>Harry and the Hindershots</TITLE>
		<AUTHOR>Tonya Harding</AUTHOR>
		<PUBLISHER>McMillon</PUBLISHER>
		<PRICE>$4.50</PRICE>
                <PAGES>200</PAGES>
  </TOPIC>
  <TOPIC> 
		<TITLE>The Autohagiography of Bill Gates</TITLE>
		<AUTHOR>Billy Boy</AUTHOR>
		<PUBLISHER>Cheap Printing</PUBLISHER>
		<PRICE>$.01</PRICE>
                <PAGES>1229</PAGES>
  </TOPIC>
  <TOPIC> 
		<TITLE>Foundations of Practical Hand Surgery</TITLE>
		<AUTHOR>Dr. Richard Jead</AUTHOR>
		<PUBLISHER>Medico Inc</PUBLISHER>
		<PRICE>$11.95</PRICE>
                <PAGES>700</PAGES>
  </TOPIC>
  <TOPIC> 
		<TITLE>Tales of Grandpa Cat</TITLE>
		<AUTHOR>Lee</AUTHOR>
		<PUBLISHER>Associated Press</PUBLISHER>
		<PRICE>$4.50</PRICE>
                <PAGES>120</PAGES>
  </TOPIC>
  <TOPIC> 
		<TITLE>Wally and the Big Phat Walrus</TITLE>
		<AUTHOR>Clark</AUTHOR>
		<PUBLISHER>PhytoMedia</PUBLISHER>
		<PRICE>$9.99</PRICE>
                <PAGES>340</PAGES>
  </TOPIC>
  <TOPIC> 
		<TITLE>Howdy, or Tales of Country Poo</TITLE>
		<AUTHOR>Oswaldo</AUTHOR>
		<PUBLISHER>Billibong Publishing</PUBLISHER>
		<PRICE>$18.95</PRICE>
                <PAGES>376</PAGES>
  </TOPIC>
</ARTICLE>


Below is the content of the article.xsl style sheet which is used by the ActiveX XML parser control to format the data contained by the XML page:

<xsl>
<rule>
	    <root/>
	    <HTML>
			<BODY font-family="Arial, helvetica, sans-serif" font-size="12pt"
					background-color="#EEEEEE">
				<children/>
			</BODY>
	    </HTML>
    </rule>
<rule>
	    <target-element type="TOPIC"/>
	    <DIV background-color="lightblue" color="blue" padding="4px">
			Title: <:select-elements>
				<:target-element type="TITLE"/>
			</select-elements>; Author:
			
			<select-elements>
				<:target-element type="AUTHOR"/>
			</select-elements>
	    </DIV>
	    <DIV margin-left="20px" margin-bottom="1em" font-size="10pt">
			Publisher: <:select-elements>
			<target-element type="PUBLISHER"/>
			</select-elements>;
			<select-elements>
				<:target-element type="PAGES"/>
			</select-elements> pages; 
			Price: <:select-elements>
				<:target-element type="PRICE"/>
			</select-elements>
		</DIV>
    </rule>
</xsl>