You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2002/10/17 22:34:23 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/parser SequenceType.java
jkesselm 2002/10/17 13:34:23
Modified: java/src/org/apache/xpath/parser Tag: xslt20
SequenceType.java
Log:
Issues w/r/t empty sequences
Revision Changes Path
No revision
No revision
1.1.2.1.2.1 +16 -0 xml-xalan/java/src/org/apache/xpath/parser/Attic/SequenceType.java
Index: SequenceType.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/parser/Attic/SequenceType.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.1.2.1
diff -u -r1.1.2.1 -r1.1.2.1.2.1
--- SequenceType.java 14 Aug 2002 20:07:07 -0000 1.1.2.1
+++ SequenceType.java 17 Oct 2002 20:34:23 -0000 1.1.2.1.2.1
@@ -184,4 +184,20 @@
m_elemOrAttrName = elemOrAttrName;
}
+ /**
+ * @see org.apache.xpath.parser.Node#jjtAddChild(Node, int)
+ */
+ public void jjtAddChild(Node n, int i)
+ {
+ super.jjtAddChild(n, i);
+
+ // It isn't. It's an OccurrenceIndicator, with m_occuranceType (oh,
+ // you can't spell it consistantly either?) defaulting to unset (0);
+ // its add-child or set-type methods aren't being invoked.
+ // Another layer of dubious default; chase this farther up the grammar?
+
+ if(n instanceof Empty)
+ m_occurrenceIndicator=InstanceofExpr.EMPTY_SEQ;
+ }
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org