|
Subject: Re: getAttribute() From: "Frank Boumphrey" <bckman@xxxxxxxxxxxxx> Date: Mon, 6 Apr 1998 00:12:30 -0700 |
I tried much of this evening trying to get the second attribute to work, and
I couldn't. I'd never tried with two atributes before. Perhaps Johnathan
Marsh can enlighten us?
Frank
-----Original Message-----
From: Henning Behme <hb@xxxxxxxxxxx>
To: XSL-List@xxxxxxxxxxxxxxxx <XSL-List@xxxxxxxxxxxxxxxx>
Date: Sunday, April 05, 1998 10:22 AM
Subject: getAttribute()
>Hi,
>
>I am trying to create different views on a document containing a web
>timeline, which I use for an upcoming article on XSL in our magazine
>(see sig). The structure of events is really simple, something like the
>following:
>
><year which="1998">
>
><event cat="special" status="dayoff">
> <day>1</day>
> <month>1</month>
> <what>NewYear</what>
></event>
>
><!-- more events -->
></year>
>
>Is it possible that you can't get hold of the second attribute using
>msxsl? The first attribute (of one, admittedly) gets out fine via style
>sheet, it is only the second one that the MS processor doesn't seem to
>like particularly :-(
>
>The error message looks like:
>
>Script error: line = 1, col = 0 (line is offset from the SCRIPT tag)
>Error returned from property or method call
>
>The two parts of the style sheet are the following:
>
>a) in element "event" (this one works)
> <eval>ancestor("year", this).getAttribute("which")</eval>
>
>
>b) in element "what" (this one doesn't)
> <eval>ancestor("event", this).getAttribute("status")</eval>
>
>
>
>Has anyone experienced anything similar?
>
>Best regards,
>Henning Behme
>
>iX - Magazin fuer professionelle Informationstechnik
>Helstorfer Str. 7 * 30625 Hannover * Germany
>http://www.heise.de/ix/ * +49 511 5352-374 * -361 (Fax)
>------ White, adj. and n. Black (Ambrose Bierce) ------
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: getAttribute(), Daniel Pitti | Thread | Re: getAttribute(), Alain DESEINE |
| getAttribute(), Henning Behme | Date | Re: getAttribute(), Alain DESEINE |
| Month |