You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bl...@apache.org on 2001/02/01 21:05:04 UTC
cvs commit: xml-cocoon/src/org/apache/cocoon/generation ServerPagesGenerator.java
bloritsch 01/02/01 12:05:03
Modified: src/org/apache/cocoon/generation Tag: xml-cocoon2
ServerPagesGenerator.java
Log:
Added full spec on PREFIX_MAPPING
Revision Changes Path
No revision
No revision
1.1.2.12 +18 -8 xml-cocoon/src/org/apache/cocoon/generation/Attic/ServerPagesGenerator.java
Index: ServerPagesGenerator.java
===================================================================
RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/generation/Attic/ServerPagesGenerator.java,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- ServerPagesGenerator.java 2001/01/22 21:56:43 1.1.2.11
+++ ServerPagesGenerator.java 2001/02/01 20:04:58 1.1.2.12
@@ -37,7 +37,7 @@
* delegating actual SAX event generation.
*
* @author <a href="mailto:ricardo@apache.org">Ricardo Rocha</a>
- * @version CVS $Revision: 1.1.2.11 $ $Date: 2001/01/22 21:56:43 $
+ * @version CVS $Revision: 1.1.2.12 $ $Date: 2001/02/01 20:04:58 $
*/
public class ServerPagesGenerator
extends ServletGenerator
@@ -285,7 +285,7 @@
public void startPrefixMapping(String prefix, String uri) throws SAXException
{
this.contentHandler.startPrefixMapping(prefix, uri);
- this.eventStack.push(new EventData(PREFIX_MAPPING, prefix));
+ this.eventStack.push(new EventData(PREFIX_MAPPING, prefix, uri));
}
public void comment(char[] ch, int start, int length) throws SAXException {
@@ -364,15 +364,25 @@
}
}
- protected EventData(int eventType, String data) {
+ protected EventData(
+ int eventType, String data1, String data2
+ )
+ {
this.eventType = eventType;
switch (this.eventType) {
case PREFIX_MAPPING:
- this.prefix = data;
- break;
- case ENTITY:
- this.name = data;
- break;
+ this.prefix = data1;
+ this.namespaceURI = data2;
+ break;
+ }
+ }
+
+ protected EventData(int eventType, String data) {
+ this.eventType = eventType;
+ switch (this.eventType) {
+ case ENTITY:
+ this.name = data;
+ break;
}
}