jkesselm 2002/08/16 13:23:02
Modified: java/src/org/apache/xml/dtm/ref/xni2dtm Tag: xslt20
XPath2Type.java
Log:
Better handling of data() -- We weren't returning the correct value (the
unaltered text)
for anyType/anySimpleType.
Revision Changes Path
No revision
No revision
1.1.2.1.2.2 +7 -1
xml-xalan/java/src/org/apache/xml/dtm/ref/xni2dtm/Attic/XPath2Type.java
Index: XPath2Type.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/dtm/ref/xni2dtm/Attic/XPath2Type.java,v
retrieving revision 1.1.2.1.2.1
retrieving revision 1.1.2.1.2.2
diff -u -r1.1.2.1.2.1 -r1.1.2.1.2.2
--- XPath2Type.java 16 Aug 2002 18:35:27 -0000 1.1.2.1.2.1
+++ XPath2Type.java 16 Aug 2002 20:23:02 -0000 1.1.2.1.2.2
@@ -220,7 +220,13 @@
Object value;
DTM_XSequence seq=null;
- if(m_xniType==null)
+ // %REVIEW% This is a SLOPPY way of handling the "any" types. Better
must exist!
+ if(m_xniType==null
+ ||
+ (("anyType".equals(m_xniType.getName()) ||
"anySimpleType".equals(m_xniType.getName()))
+ &&
"http://www.w3.org/2001/XMLSchema".equals(m_xniType.getNamespace())
+ )
+ )
{
seq=new DTM_XSequence(textvalue,this);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]