|
Subject: Re: [xsl] Likely a very stupid question From: Joelle Tegwen <tegwe002@xxxxxxx> Date: Fri, 20 Oct 2006 12:52:42 -0500 |
Even when I add
<table border="1">
<tr bgcolor="#9acd32">
<th>ID</th> <th>Title</th>
</tr>
<xsl:for-each select="sitemap/section">
<tr>
<td><xsl:value-of select="id" /></td>
<td><xsl:value-of select="title" /></td>
</tr>
</xsl:for-each>
</table>You seem to have missed a xsl:for-each or xsl:apply-templates instruction.
In your Schema, there is recursive nesting of <section> tag. So you need to show us the desired output as well (for the example you have given).
On 10/20/06, Joelle Tegwen <tegwe002@xxxxxxx> wrote:I'm just trying to figure out XML and XSL. I've been using this tutorial http://www.w3schools.com/xsl/xsl_value_of.asp to guide me through as I work on my own code.
I've got this http://rafb.net/paste/results/ObLbVH51.html schema for this http://rafb.net/paste/results/dyNo4Q36.html xml file and I'm trying to apply this http://rafb.net/paste/results/SOetCN41.html xsl stylesheet
I get no values in my table, just the headers. I've even tried copying and pasting their code and just entering the corresponding code for my own document and I still get nothing.
What am I doing wrong?
Thanks Joelle
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Likely a very stupid ques, Mukul Gandhi | Thread | Re: [xsl] Likely a very stupid ques, Abel Braaksma |
| Re: [xsl] Generating random numbers, Dimitre Novatchev | Date | Re: [xsl] Likely a very stupid ques, Abel Braaksma |
| Month |