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 39512 invoked from network); 20 Nov 2000 18:41:36 -0000 Received: from f54.law4.hotmail.com (HELO hotmail.com) (216.33.149.54) by locus.apache.org with SMTP; 20 Nov 2000 18:41:36 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 20 Nov 2000 10:41:10 -0800 Received: from 148.88.0.10 by lw4fd.law4.hotmail.msn.com with HTTP; Mon, 20 Nov 2000 18:41:10 GMT X-Originating-IP: [148.88.0.10] From: "Robin Green" To: cocoon-users@xml.apache.org Subject: Re: Processing embedded stylesheets Date: Mon, 20 Nov 2000 18:41:10 GMT Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 20 Nov 2000 18:41:10.0390 (UTC) FILETIME=[738B2960:01C05321] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Tobias Kiesling wrote: > > >I know, this question should go to a Xalan-List, but there is no > > >xalan-users list available, so I chose to put it here. > > > > You obviously haven't read http://xml.apache.org/cocoon/mail-lists.html > >You're right, I didn't read it, but after doing so, I don't see the >difference. Mulberrytech is more appropriate for XSLT questions. > > > > > >I've got a problem processing a stylesheet embedded in an > > >xml-document. According to the XSLT-Standard this should work by > > >including a processing instruction referring to the > > >xsl:stylesheet-element in the same document by using a > > >fragment-identifier. > > >The PI would look something like this: > > > > > > > > >The target stylesheet-element looks like this: > > > > > > > > >When I try to process the document, cocoon simply states, that it > > >couldn't find the stylesheet /usr/local/blah/#styler . > > >I tried the Tranformation with Xalan alone (not in the cocoon-process) > > >and the results were almost the same: Xalan stated, that it couldn't > > >find the Stylesheet. > > > > Looks like a Xalan bug then. send it to xalan-dev. > >Ok, I'll send it there. > > > > > > > > >Xalan claims to conform to the XSLT-Standard. Is this true (and I have > > >done something wrong) or isn't it possible to process embedded > > >stylesheets in the cocoon-publishing-process ? > > > > Well Cocoon is all about separation of concerns, so that explains why we > > don't support it. But if you can give a good reason why this should be > > supported, I'll listen. > > > >In one step of the publishing process I need to apply a stylesheet to >the data to produce two different things. The one thing is just the >data that should be presented. The other one is a stylesheet that >processes the data in the next step. >That's right, I write a >stylesheet to produce another stylesheet and I need to apply this >produced stylesheet to the data in the publishing process. One >possibility to do this is by embedding the stylesheet in the document >containig the data. I don't know another easy possibilty. Write the stylesheet out to a file, e.g. using org.apache.cocoon.formatter.XMLFormatter. There should be an easier way to do this in XSP; it's on the todo list at the bottom. > >Another reason, why this should be supported is just standards >conformance. I know you are perhaps the wrong one, as cocoon uses >xalan and xalan should conform to the XSLT-Standard. >Please don't misunderstand me, I really (REALLY) appreciate the work >you guys are doing, but there _are_ good reasons behind the decisions >of the Standards-Workingroups and you should think twice (or thrice) >about decisions like 'this feature doesn't fit into our concept -- we >won't support it'. It needs to be fixed in Xalan, I think, and then in Cocoon as well. We can blow and puff as much as we like but we won't be able to support it unless Xalan supports it. _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. Share information about yourself, create your own public profile at http://profiles.msn.com.