Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 17960 invoked from network); 16 Mar 2000 02:26:24 -0000 Received: from phoenix.webslingerz.com (balld@206.66.49.24) by locus.apache.org with SMTP; 16 Mar 2000 02:26:24 -0000 Received: from localhost (balld@localhost) by phoenix.webslingerZ.com (8.8.7/8.8.7) with ESMTP id VAA30534 for ; Wed, 15 Mar 2000 21:25:42 -0500 Date: Wed, 15 Mar 2000 21:25:42 -0500 (EST) From: Donald Ball To: Cocoon Mailing List Subject: Re: Default XSL In-Reply-To: <38D05E9D.ACA913E8@fuse.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N On Wed, 15 Mar 2000, Bob wrote: > Folks : > > If you try to open up an xml document in Microsoft Internet Explorer, > and if you dont have an associated XSL, it still opens the document with > a default style sheet, which is pretty handy in the sense that it > provides some good capabilities like color coding of markup, > auto-indenting of the display and the best part, click and > expand/collapse. The good thing is it can operate on any XML document. > That internal style sheet has been made public by microsoft and is > available at : > > http://msdn.microsoft.com/xml/samples/defaultss/defaultss.xsl > > This style sheet generates DHTML from the XML document. > > I am trying to use this style sheet with Cocoon and am unable to do so. > I have tried specifying this style sheet for an XML document and it > doesnt work. Is there anybody who has tried doing this? or is a generic > style sheet available somewhere on the net which can be used with > Cocoon, and can provide similar capability? This would be real help as > most of our users have variety of XML documents with no XSL, and a > click/expand heirarchy display in the browser would be great help. The xmlns:xsl pseudoattribute is incorrect; it should be xmlns:xsl="http://www.w3.org/1999/XSL/Transform", plus the xsl:stylesheet element needs a version="1.0" attribute. Actually, there are quite a few things wrong with their stylesheet; they're using instead of , for instance. If you run your xml + this xsl from xalan on the command line: java org.apache.xalan.xslt.Process -in foo.xml -xsl foo.xsl you should get descriptive errors which you can then patch. The view-source.xml XSP example that comes with cocoon does some fairly nice highlighting with colors and such. Might be worth your while to check it out. - donald