OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   value of "this" in IE5b2-XSL script

[ Lists Home | Date Index | Thread Index ]
  • From: "
    浜田 伸一郎
    " <shinichiro.hamada@toshiba.co.jp>
  • To: "ML XMLDev" <xml-dev@ic.ac.uk>
  • Date: Wed, 20 Jan 1999 18:35:43 +0900

Hello, all.

I'm studying XSL with IE5b2 and then I encountered a strange phenomena which
bothers me very much.

I wrote a following XML and XSL based on a sample of MS web page. These
files should show XML's element values with using XSL's "this" keyword and
Javascript. But IE5b2 sometimes shows so, and sometimes shows nothing! That
is why? IE5b2's bug?

Do I misunderstand anything on XSL? Please give me any advices.
Thank you in advance.

Shinichiro HAMADA

---- simple.xml ----
<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="simple.xsl" ?>


    <name>Belgian Waffles</name>

    <name>Strawberry Belgian Waffles</name>


---- simple.xsl ----
<?xml version="1.0"?>

<html xmlns:xsl="http://www.w3.org/TR/WD-xsl">

function PutSrc() { return "" + this };

  <xsl:for-each select="breakfast-menu/food">
    <div style="margin-left:20px; margin-bottom:1em; font-size:10pt">


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS