On Tue, 6 Feb 2001 08:15:44 -0700, Dave Carlson wrote:
>Does the XSL stylesheet work properly with Xalan from the command line,
>outside of Jetspeed? The error (outputing of the stylesheet itself) is a
>common symptom of an incorrect XSL namespace declaration in the stylesheet
>root element. For example, was this stylesheet written for an older
>version of MS's not-quite-XSL?
>
This was it.
Testing this stuff from the command line is always a good idea.
I recommend the following URL for valuable information on stylesheet processing (paste
some relevant part of it at the bottom of the mail):
http://www.ibiblio.org/xml/books/bible/updates/14.html
We had to replace
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
by:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Cheers
Udo
Internet Explorer 5.0's XSL support differs from the November 16, 1999 recommendation
in several ways. First of all it expects that XSL elements are in the
http://www.w3.org/TR/WD-xsl namespace
instead of the http://www.w3.org/1999/XSL/Transform namespace, although the xsl prefix
is still used. Secondly it does not use a version attribute on the xsl:stylesheet
element. Next, it expects
the MIME type text/xsl in the xml-stylesheet processing instruction rather than
text/xml. Finally, it does not implement the default rules for elements that match no
template. Consequently, you need to
provide a template for each element in the hierarchy starting from the root before
trying to view a document in Internet Explorer. Listing 14-4 demonstrates. The three
rules match the root node, the root element
PERIODIC_TABLE, and the ATOM elements in that order. Figure 14-3 shows the XML
document in Listing 14-1 loaded into Internet Explorer 5.0 with this style sheet.
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/[email protected]/>
List Help?: [EMAIL PROTECTED]