[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Newbie Needs Help
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|