<!-- File: XmlAdPanel.aspx -->
<%@ Page language="c#" %>
<HTML>
<body>
<form runat="server">
<asp:Xml id=_xml1 runat="server"
DocumentSource="sample.xml"
TransformSource="sampleTransform.xsl">
</asp:Xml><br/>
<asp:Panel id=_p1 runat=server HorizontalAlign='center'
Visible='true' bgColor='cornsilk'>
<asp:Label id=_l1 runat=server>Panel label</asp:Label>
<br/>
<asp:TextBox id=_tb1 runat=server/>
<br/>
<asp:Button Text='Push me!' runat=server/>
</asp:Panel>
</FORM>
</body>
</HTML>
<%--
<items>
<item>item 1</item>
<item>item 2</item>
<item>item 3</item>
<item>item 4</item>
</items>
--%>
<%--
<xsl:transform xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'>
<xsl:output method="html" indent='yes'/>
<xsl:template match="item">
<li>
<xsl:apply-templates />
</li>
</xsl:template>
<xsl:template match="items">
<ul>
<xsl:apply-templates />
</ul>
</xsl:template>
<!-- Root template match -->
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
</xsl:transform>
--%>
|