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

Re: getAttribute()

Subject: Re: getAttribute()
From: Daniel Pitti <dvp4c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 06 Apr 1998 07:42:23 -0400
daniel pitti
Henning,

If memory serves, there is a bug in the getAttribute function; if the
targeted attribute is not present on any of the target elements, you get
the error below. MS knows about it.

Daniel

At 07:17 PM 4/5/1998 +0200, you wrote:
>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
>
>
Daniel V. Pitti 	Project Director	
Institute for Advanced Technology in the Humanities
Alderman Library	University of Virginia	Charlottesville, Virginia 22903
Phone: 804 924-6594	Fax: 804 982-2363	Email: dpitti@xxxxxxxxxxxx


 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.