Re: Newbie Needs Help

Subject: Re: Newbie Needs Help
From: "Oren Ben-Kiki" <oren@xxxxxxxxxxxxx>
Date: Sun, 20 Dec 1998 09:40:32 +0200
Maybe the problem is that I'm using Koala; the following stylesheet:

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";
xmlns:html="http://www.w3.org/TR/REC-html40/"; result-ns="html">

<xsl:template match="/">
<TOP><xsl:value-of expr="attribute(B)"/></TOP>
</xsl:template>

</xsl:stylesheet>

Produces an error when given the XML:

<A><D C="B"></D></A>

(Complaining that "A" does not have a "C" attribute), but works for:

<A C="B"></A>

Producing:

<TOP>C</TOP>

So it obviously _does_ match the top-level "A" element for the "/" pattern.
A bug?

Oren Ben-Kiki.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread