greenrd 01/03/26 13:31:56
Modified: . changes.xml
src/org/apache/cocoon/processor/xsp XSPProcessor.java
Log:
added path and relative-filename xsl params for logicsheets
Revision Changes Path
1.228 +6 -1 xml-cocoon/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/changes.xml,v
retrieving revision 1.227
retrieving revision 1.228
diff -u -r1.227 -r1.228
--- changes.xml 2001/03/26 16:46:44 1.227
+++ changes.xml 2001/03/26 21:31:55 1.228
@@ -4,7 +4,7 @@
<!--
History of Cocoon changes
- $Id: changes.xml,v 1.227 2001/03/26 16:46:44 greenrd Exp $
+ $Id: changes.xml,v 1.228 2001/03/26 21:31:55 greenrd Exp $
-->
<changes title="History of Changes">
@@ -18,6 +18,11 @@
</devs>
<release version="@version@" date="@date@">
+ <action dev="RDG" type="add" due-to="Peter C. Verhage"
due-to-email="[EMAIL PROTECTED]">
+ Two more xsl:params available in logicsheets - path and relative-filename.
+ If the source filename is /home/greenrd/test.xml then path will be
/home/greenrd and
+ relative-filename will be test.xml.
+ </action>
<action dev="RDG" type="fix" due-to="[EMAIL PROTECTED]"
due-to-email="[EMAIL PROTECTED]">
XSP now allows periods (.) in namespaces for namespace-mapped logicsheets.
</action>
1.43 +4 -2
xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java
Index: XSPProcessor.java
===================================================================
RCS file:
/home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/XSPProcessor.java,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- XSPProcessor.java 2001/03/26 16:46:47 1.42
+++ XSPProcessor.java 2001/03/26 21:31:56 1.43
@@ -1,4 +1,4 @@
-/*-- $Id: XSPProcessor.java,v 1.42 2001/03/26 16:46:47 greenrd Exp $ --
+/*-- $Id: XSPProcessor.java,v 1.43 2001/03/26 21:31:56 greenrd Exp $ --
============================================================================
The Apache Software License, Version 1.1
@@ -78,7 +78,7 @@
* This class implements the XSP engine.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Ricardo Rocha</a>
- * @version $Revision: 1.42 $ $Date: 2001/03/26 16:46:47 $
+ * @version $Revision: 1.43 $ $Date: 2001/03/26 21:31:56 $
*/
public class XSPProcessor extends AbstractActor
implements Processor, Configurable, Status, Cacheable
@@ -397,6 +397,8 @@
// Build XSP parameters for logicsheet
Hashtable logicsheetParameters = new Hashtable();
logicsheetParameters.put("filename", filename);
+ logicsheetParameters.put("path", new File (filename).getParent ());
+ logicsheetParameters.put("relative-filename", new File
(filename).getName ());
logicsheetParameters.put("language", languageName);
logicsheetParameters.put("XSP-ENVIRONMENT", Cocoon.version ());
logicsheetParameters.put("XSP-VERSION", version());
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]