From: SourceForge.net <no...@so...> - 2006-05-04 02:20:44
|
Bugs item #1113386, was opened at 01/31/05 11:07 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1113386&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: HTML >Status: Closed Resolution: Works For Me Priority: 5 Submitted By: Pierre Attar (pierat) Assigned to: Nobody/Anonymous (nobody) Summary: Chunking with SUN implementation of XALAN Initial Comment: If I try to use the JAXP 1.3 version of Xalan, in a non compiled way, the chunking mechanism does not works, just because redirect class extension is no more at org.apache.xalan.xslt.extensions.Redirect but at com.sun.org.apache.xalan.internal.lib.Redirect Note 1 ------ I did not try it in the "compiled mode" Note 2 ------- Non compiled mode is not in the standard JDK 1.5. xalan.jar, coming from the JAXP 1.3 needs to be download and integrate by hands. https://jaxp.dev.java.net/servlets/ProjectDocumentList?folderID=2068&expandFolder=2068&folderID=0 Workaround : ------------- For those willing to use JAXP anyway, there is one little thing to do to the XSL stylesheet : One, declare the extension in chunker.xsl (here, I use xmlns:xalanjaxpredirect) : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://icl.com/saxon" xmlns:xalanredirect="org.apache.xalan.xslt.extensions.Redirect" xmlns:xalanjaxpredirect="com.sun.org.apache.xalan.internal.lib.Redirect" xmlns:exsl="http://exslt.org/common" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" xmlns="http://www.w3.org/1999/xhtml" version="1.1" exclude-result-prefixes="doc" extension-element-prefixes="saxon xalanredirect exsl xalanjaxpredirect"> Second change the xalan selector in the <xsl:template name="make-relative-filename"> <xsl:when test="element-available('xalanredirect:write') or element-available('xalanjaxpredirect:write') or element-available('xsl:result-document')"> <!-- Xalan doesn't make the chunks relative --> <xsl:value-of select="concat($base.dir,$base.name)"/> </xsl:when> Then, add a new selector in the chunker itself : <xsl:when test="element-available('xalanjaxpredirect:write')"> <!-- Xalan usewith jdk 1.5 --> <xalanjaxpredirect:write file="{$filename}"> <xsl:copy-of select="$content"/> </xalanjaxpredirect:write> </xsl:when> ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 05/03/06 19:20 Message: Logged In: YES user_id=1312539 This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Norman Walsh (nwalsh) Date: 04/19/06 06:06 Message: Logged In: YES user_id=81663 Apologies for having let this slide for...uhm, more than a year. I can't now reproduce the problem using JAXP 1.3.2 downloaded from jaxp.dev.java.net and placed in the 1.5.0_04 using lib/endorsed. Can you? Please reopen if the problem still exists. ---------------------------------------------------------------------- Comment By: Pierre Attar (pierat) Date: 04/04/05 11:44 Message: Logged In: YES user_id=689805 If you use org.apache.xalan ... it means that you need a xalan.jar from Apache. All the idea is to try to use the standard 1.5 JDK, without adding (endorsing) any kind of other xalan package. In doing that, you need to use the com.sun.org.apache.xalan.internal.xxx packages which are all non standards (non standard in jaxp) features of xalan. Redirect goes in this category. ---------------------------------------------------------------------- Comment By: Norman Walsh (nwalsh) Date: 04/04/05 06:58 Message: Logged In: YES user_id=81663 I believe the class has been renamed in Xalan. It is now called org.apache.xalan.lib.Redirect. Can you try that? I think that would be better than using the Sun private API. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=1113386&group_id=21935 |