用户操作
[即时聊天] [发私信] [加为好友]
贺师俊ID:hax
115320次访问,排名752好友1人,关注者10
hax的文章
原创 124 篇
翻译 2 篇
转载 12 篇
评论 128 篇
hax的公告

我回来了……

最近评论
sap99:www.sap99.com/,SAP99资料多多

SAP免费资料下载
http://www.sap99.com

有很多的学习资料,推荐一下,
hax:其次,也并不是一定要切换编码。只要你的系统是遵循既有规范的,则可以无缝的整合。
hax:从gb2312切换到utf-8其实并不难,有个几天就可以了。
allskystar:以我现在的公司为例,主要的问题在于,以前已经有几个很大的系统用了gb2312了,现在新的系统用的utf-8,要兼容,如果我对头儿说要花一年时间把以前的几个系统都改成utf-8的,估计会被他从10楼直接扔下去...
hax:哦,qomo终于不用eval啦?
文章分类
收藏
    相册
    blog图片
    More
    sfo正牌blog(RSS)
    个人网站
    我在JavaEye的技术部落格
    我墙外的Blogger
    存档
    软件项目交易
    订阅我的博客
    XML聚合  FeedSky
    订阅到鲜果
    订阅到Google
    订阅到抓虾
    订阅到BlogLines
    订阅到Yahoo
    订阅到GouGou
    订阅到飞鸽
    订阅到Rojo
    订阅到newsgator
    订阅到netvibes

    原创 给IE增加dom3xpath支持收藏

    新一篇: zz 做女孩 | 旧一篇: 提交Gecko的一个bug

    Dimitri Glazkov's html-xpath provides DOM level 3 XPath features for M$IE. I found it first from Sarissa docs which mentions it as complement to Sarissa.

    Great, is it? But it still have some limits:

    1. It only works for html document of current window!
    Yes, M$IE xml DOM provides selectNodes/selectSingleNode, but these methods can not return number/boolean/string value. So I'd rather insist on more full-desiged dom3xpath standard api.

    2. It maybe have some 'unsolvable' performance issues according to the author.

    3. Due to short of getter/setter, it doesn't provide read-only properties as spec recommends, instead of result.xxxValue, it use java-style binding: result.getXxxValue(). This brings some inconvenient and trivial work when migrate codes from other implementation (ie. Mozilla).

    I plan to overcome the 1st (in some degree, the 2nd) limit. Here is my work in process.

     

    Appendix: my letter to Dimitri Glazkov

    Great work! I want to use in in my product.
    But it seems that u have no plan to improve it? What are "unsolvable performance issues"? If it is because of recursive calls of loadNode(), i think such codes can be dropped.
    My initial requirement is XPath api for any document, not only html. So i modified some codes. After reading the codes, i have a question, why u must call selectNodes and transformNode method from document(what your _XPathMsxmlDocumentHelper.getDOM returns), every node have these two methods, so why not call result._contextNode.selectNodes or result._contextNode.transformNode ? And in such calling, u don't need to adjust expression or loadDocument at all.
    Maybe I missed sth important :)

    发表于 @ 2006年02月15日 14:37:00|评论(loading...)|编辑

    新一篇: zz 做女孩 | 旧一篇: 提交Gecko的一个bug

    评论:没有评论。

    发表评论  


    当前用户设置只有注册用户才能发表评论。如果你没有登录,请点击登录
    Csdn Blog version 3.1a
    Copyright © hax