|
Subject: Attributes from ancestors (Was: Problems with iso-8859-1) From: Lars-Arne Mattsson <larssa@xxxxxxxxxx> Date: Tue, 2 Feb 1999 10:36:00 +0100 (MET) |
Chris Tomlinson wrote:
> And XP handles ISO 8859-1 which I believe is simply code page zero(0) of
> Unicode?
Thank you everyone for your help, I have now found out what the
problem was. The koala engine does handle ISO-8859-1, what it doesn't
handle is iso-8859-1. I should have tried it before... A
clearification about what problem I had is that I want to write the
swedish characters å,ä,ö (a with two dots, a with a ring, o with two
dots). The koala enging said it wasn't a legal UTF-8 character. This
is now fixed when I found out how to demand ISO-8859-1 encoding.
Another question: I have a problem with attributes. I (unfortunatly)
use the august version of XSL and I wonder if it's possible to fetch
attribute values from ancestors. Here follows a example of what I want
to do.
XML:
<question id="42">
<answer type="alternatives">
<alt>First
<alt>Second
<alt>Third
<alt>Forth
</answer>
</question>
HTML:
<form ...>
<table>
<tr>
<td>First</td><td><input type="radio" name="42" value="1"></td>
<td>Second</td><td><input type="radio" name="42" value="2"></td>
<td>Third</td><td><input type="radio" name="42" value="3"></td>
<td>Forth</td><td><input type="radio" name="42" value="4"></td>
</tr>
</form>
The problem is that I want to use a <xsl:for-each select="alt"> to
handle the alternatives. But then i can't use the standard
<xsl:value-of expr="attribute(id)"/>. I've looked at the ancestor
command (ancestor([attribute[id]])), but I can't get any data from it
(probaly bacuse I've missunderstood it's meaning.
Anyway, if anyone can help me with this I'd really appreciate it!
regards,
/Larssa
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Problems with iso-8859-1, Lars Marius Garshol | Thread | Re: Attributes from ancestors (Was:, Lars Marius Garshol |
| Sorting on numbers, Joop Snijder | Date | Re: Problems with iso-8859-1, Guy_Murphy |
| Month |