Develop and Download Open Source Software

Back to Forum List
Back to this Forum

RSS feed of this forum [RSS]RSS for this Forum
RSS feed of this forum thread [RSS]RSS for this Thread

Discussion Forums: 公開ディスカッション


Forum posts/thread author names displayed like this are non-Login Users' posts (Post from non SourceForge.JP user).

Subject:[#26057] 受信電文にhtmlのソースを含めたい

Date:2006-11-17 17:46By: Anonymous
送信電文の場合も同じかとは思いますが、受信電文にhtmlのソースを含めたいと思っております。
具体的にはサーバーのデータベースにhtmlのソースが格納されていて、それを受信電文で受信してテキストエリアに書き出すという処理を行いたいと考えています。
現状では、受信電文にhtmlのソースを含めると、
「maskat.autoCallBack.Func呼び出し時にエラーが発生しました。
name: Mask@XPath SyntaxError
message: text()ノードテストを指定したノードのXML形式が不正です。
エラーが発生したロケーションパス: ********/text()
fileName: intrpr.js
functionName: maskat.xpath」
(********は受信電文のノード名)
というアラートが出ます。
<!CDATA[ と ]]> で囲ってやっても同じでした。
何か回避策はありますでしょうか?

    Subject:[#26127] RE: 受信電文にhtmlのソースを含めたい

    Date:2006-11-21 19:55By: sheng (shsalex)
    maskatの不具合でした。
    大変お手数ですがBug Tracking Systemへの登録をお願いしてよろしいでしょうか。
    https://sourceforge.jp/tracker/?atid=8990&group_id=2419&func=browse
    登録することで利用者・開発者全体でバグを認知・管理することが可能になります。

    次回のリリースにて対応したいと思います。

    ここでは現バージョン(1.2.1)での一時的な対策案をご紹介します。
    maskatFW/core/intpr.jsにあるmaskat.xpath関数定義内のコードを以下のように修正します。

    【修正前】
    if (domArray[j].childNodes && domArray[j].childNodes.length == 1
    && domArray[j].childNodes[0].nodeType == 3){ // TEXT_NODE
    【修正後】
    if (domArray[j].childNodes && domArray[j].childNodes.length == 1
    && (domArray[j].childNodes[0].nodeType == 3 || domArray[j].childNodes[0].nodeType == 4)){

    ※3はTEXT_NODE、4はCDATA_SECTION_NODEです。
    ご報告ありがとうございました。今後ともよろしくお願いします。

    Subject:[#26140] RE: 受信電文にhtmlのソースを含めたい

    Date:2006-11-22 12:46By: Anonymous
    教えていただいた対策で上手く行きました。
    ありがとうございました。

Post a message to this thread:
(follow up to message [#26057])

Subject:



Non-login user's post can not identify who are you. If you want to display your name on the post, please input your name.
(If you leave this blank, your message's author will display as Anonymous.)
Message:

HTML tags will display in your post as text
You are posting anonymously because you are not [logged in]

SourceForge.JP is a Japanese version of SourceForge.net. For developments that are not related to Japan, we recommend you to use SourceForge.net.