Subject: [xsl] paging question From: "Rachel Doolan" <racheldoolan@xxxxxxxxxxx> Date: Tue, 06 Mar 2001 22:05:14 |
---Relevant code in the ASP file sourceFile = Server.MapPath("Results.xml") styleFile = Server.MapPath("Project.xsl") set source = Server.CreateObject("Microsoft.XMLDOM") source.async = false source.load(sourceFile) set style = Server.CreateObject("Microsoft.XMLDOM") style.load(styleFile) Response.Write(source.transformNode(style))
--Sample of the XML code <ALL> <CATEGORY> <desc>Solo is for those who ...</desc> <title>Xoology - Solo Main Page</title> <url>http://www.xoology.com/home/index_stnd.html</url> </CATEGORY> </ALL>
--Sample XSL code <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> <xsl:template match="/">
<xsl:for-each select="ALL/CATEGORY"> <TR><TH>Title:</TH> <TD><xsl:value-of select="title"/></TD> </TR> <TR><TH>Description:</TH> <TD><xsl:value-of select="desc"/></TD> </TR> <TR><TH>Url:</TH> <TD><xsl:value-of select="url"/></TD> </TR> </xsl:for-each>
</BODY> </HTML>
</xsl:template> </xsl:stylesheet>
the paging code is at dave pawson's site: http://www.dpawson.co.uk/xsl/paging.html
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL and C, by way of Mulberry T | Thread | RE: [xsl] paging question, Michael Kay |
[xsl] XSL and C, by way of Mulberry T | Date | [xsl] FXPath v0.3 + SAXON Implement, David . Rosenborg |
Month |