[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Attributes from ancestors (Was: Problems with iso-8859-1)

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)
ancestors of the koala
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.