ok now, I submitted a patch to work around this one...

Neeme
> -----Original Message-----
> From: Neeme Praks 
> Sent: Wednesday, June 07, 2000 2:03 PM
> To: JetSpeed (E-mail)
> Subject: bug with consecutive/nested stylesheets in CocoonPortlet
> 
> 
> 
> I got the processing of 
>     XSP -(logicsheet)-> XSP -(compiling)-> XML
> working now. With couple of hacks to escape the bug of incorrect
> virtual-to-physical filename mapping, but still, it's working.
> 
> Next I'm trying to use two consecutive stylesheets, one for logic and
> other for formatting: 
>     XSP -(logicsheet)-> XSP -(compiling)-> XML -(formatting 
> XSLT)-> HTML
> I insert PIs in my logicsheet to show the location of my formatting
> stylesheet. This is where a bug comes in: instead of handling this
> filename as usual relative URL, it gets appended to the original XSP
> filename.
> 
> 
> So, I insert:
> <xsl:processing-instruction
> name="xml-stylesheet">href="one-html-list.xsl"
> type="text/xsl"</xsl:processing-instruction>
> and it gets handled like:
> D:\Turbine\webapps\jetspeed\jetspeed\folderTree.xmlone-html-list.xsl
> correct would be:
> D:\Turbine\webapps\jetspeed\one-html-list.xsl
> 
> Next try, I insert:
> <xsl:processing-instruction
> name="xml-stylesheet">href="/jetspeed/one-html-list.xsl"
> type="text/xsl"</xsl:processing-instruction>
> and it gets handled like:
> D:\Turbine\webapps\jetspeed\jetspeed\folderTree.xml\jetspeed\o
> ne-html-li
> st.xsl
> correct would be:
> D:\Turbine\webapps\jetspeed\one-html-list.xsl
> 
> In both cases I get this error message (with different 
> stylesheet URLs,
> as shown above):
> CocoonPortlet: Could not use the following URL:
> http://localhost:8080/jetspeed/FolderTree.xml Could not associate
> stylesheet to document: error reading
> D:\Turbine\webapps\jetspeed\jetspeed\folderTree.xml\jetspeed\o
> ne-html-li
> st.xsl: org.xml.sax.SAXParseException: File
> "file:/D:/Turbine/webapps/jetspeed/jetspeed/folderTree.xml/jet
speed/one-
html-list.xsl" not found.

I was trying to locate the faulty code, but I seems that it happens in
Cocoon and I don't have the sources of Cocoon that is distributed with
Jetspeed at hand. I think that the problem could be in the
implementation of JetspeedServletRequest, it doesn't pass the correct
path info?

Neeme


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]



--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to