greenrd 01/03/26 08:46:49
Modified: . changes.xml
src/org/apache/cocoon/processor/xsp XSPProcessor.java
Log:
allow . in namespaces for xsp
Revision Changes Path
1.227 +4 -1 xml-cocoon/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/changes.xml,v
retrieving revision 1.226
retrieving revision 1.227
diff -u -r1.226 -r1.227
--- changes.xml 2001/03/26 15:30:27 1.226
+++ changes.xml 2001/03/26 16:46:44 1.227
@@ -4,7 +4,7 @@
<!--
History of Cocoon changes
- $Id: changes.xml,v 1.226 2001/03/26 15:30:27 greenrd Exp $
+ $Id: changes.xml,v 1.227 2001/03/26 16:46:44 greenrd Exp $
-->
<changes title="History of Changes">
@@ -18,6 +18,9 @@
</devs>
<release version="@version@" date="@date@">
+ <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>
<action dev="RDG" type="add" due-to="Sebastien Koechlin"
due-to-email="[EMAIL PROTECTED]">
Added ability to omit xml declaration from output (see cocoon.properties).
</action>
1.42 +4 -4
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.41
retrieving revision 1.42
diff -u -r1.41 -r1.42
--- XSPProcessor.java 2001/03/22 19:58:27 1.41
+++ XSPProcessor.java 2001/03/26 16:46:47 1.42
@@ -1,4 +1,4 @@
-/*-- $Id: XSPProcessor.java,v 1.41 2001/03/22 19:58:27 greenrd Exp $ --
+/*-- $Id: XSPProcessor.java,v 1.42 2001/03/26 16:46:47 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.41 $ $Date: 2001/03/22 19:58:27 $
+ * @version $Revision: 1.42 $ $Date: 2001/03/26 16:46:47 $
*/
public class XSPProcessor extends AbstractActor
implements Processor, Configurable, Status, Cacheable
@@ -269,8 +269,8 @@
while (e.hasMoreElements()) {
String str = (String) e.nextElement();
- String namespace = str.substring(0, str.indexOf('.'));
- String language = str.substring(str.indexOf('.') + 1);
+ String namespace = str.substring(0, str.lastIndexOf('.'));
+ String language = str.substring(str.lastIndexOf('.') + 1);
String location = (String) lsConf.get(str);
if (this.languages.get(language) == null) {
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]