xsl-list
[Top] [All Lists]

RE: Node implementation

2004-08-19 10:09:42
Quoting Michael Kay <mhk(_at_)mhk(_dot_)me(_dot_)uk>:

If the XSLT processor allows calls to a method that expects a Node, then it
will take care of the problem of deciding what Node implementation to use.
Your method doesn't need to know, so it's perfectly OK just to declare it as
Node.

You're right (as usual :) ). However i was hopping to find some class that
implements Node and extends it's functionality, like for instance some
getChild( name) or getFirstChild (name), or even getElementsByTagName(name).

This last one is a method of Element and Document, both extends Node, but when i
try to cast Node to one of then, altought i'm not getting any Cast Exception, i
get a error in execution time...

So i'm going to try to use Node methods alone...

I'm using Xalan-Java 2.4.1, i guess...

#---- BEGIN writeEnvironmentReport($Revision: 1.14 $): Useful stuff found: ----
version.DOM.draftlevel=2.0fd
java.class.path=.
version.JAXP=1.1
java.ext.dirs=C:\JBuilderX\jdk1.4\jre\lib\ext
version.xerces2=not-present
version.xerces1=not-present
version.xalan2_2=Xalan Java 2.4.1
version.xalan1=not-present
version.ant=not-present
java.version=1.4.2_01
version.DOM=2.0
version.crimson=present-unknown-version
sun.boot.class.path=C:\JBuilderX\jdk1.4\jre\lib\rt.jar;C:\JBuilderX\jdk1.4\jre\l
ib\i18n.jar;C:\JBuilderX\jdk1.4\jre\lib\sunrsasign.jar;C:\JBuilderX\jdk1.4\jre\l
ib\jsse.jar;C:\JBuilderX\jdk1.4\jre\lib\jce.jar;C:\JBuilderX\jdk1.4\jre\lib\char
sets.jar;C:\JBuilderX\jdk1.4\jre\classes
version.SAX=2.0
version.xalan2x=Xalan Java 2.4.1
#----- END writeEnvironmentReport: Useful properties found: -----
# YAHOO! Your environment seems to be OK.






O SAPO já está livre de vírus com a Panda Software, fique você também!
Clique em: http://antivirus.sapo.pt


<Prev in Thread] Current Thread [Next in Thread>