论坛: 利用方法 (Thread #6895)

XHTMLが出力できない (2005-02-04 18:12 by 匿名 #12747)

XHTML1.1で出力しようとしたのですが、
以下のエラーが出てきてしまいます。

error hapend in C:/Eclipse/workspace/test/ht_sources/aboutus.html:3(can't happen)
==>:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=U
C:/ruby/lib/ruby/site_ruby/1.8/amrita/parser.rb:304:in `parse'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/parser.rb:274:in `parse_io'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/parser.rb:279:in `parse_file'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/parser.rb:278:in `open'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/parser.rb:278:in `parse_file'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/template.rb:274:in `load_template'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/template.rb:208:in `setup_template'
C:/ruby/lib/ruby/site_ruby/1.8/amrita/template.rb:115:in `expand'
c:\eclipse\plugins\com.narucy.webpub.core_0.8.1\scripts\lib\webpub\amrita_publisher.rb:49:in `do_publish'
c:\eclipse\plugins\com.narucy.webpub.core_0.8.1\scripts\lib\webpub\amrita_publisher.rb:20:in `publish'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/lib/webpub/publish_manager.rb:139:in `publish'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/lib/webpub/publish_manager.rb:117:in `each'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/lib/webpub/publish_manager.rb:117:in `publish'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/lib/webpub/publish_manager.rb:113:in `each'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/lib/webpub/publish_manager.rb:113:in `publish'
c:/eclipse/plugins/com.narucy.webpub.core_0.8.1/scripts/bin/wp:87

またcygwinだと同期されない
RDT0.5.0だとUse RDT Settingsができない
などもありました。
環境は
WindowsXP home
ruby1.8.2 mingw32
Eclipse3.0.1+日本語化(Language Pack)
Amrita1.0.2
RDT0.5.0

回复到 #12747×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: XHTMLが出力できない (2005-02-26 17:55 by 匿名 #13015)

同じことを経験していますが、現amritaの仕様のようです。
(amritaのテンプレートに xml:lang=といった名前空間付属性を書くと受け付けてくれない)
堀川さんのパッチを当てたamrita だと、うまくいきます。
 http://www.nslabs.jp/amrita-altered.rhtml

amritaのフォーラムで、このパッチを取り込むかどうかという議論をしているようなので、是非進めていただくと、ありがたいです。。
 http://amrita.sourceforge.jp/index.ja.html
回复到 #12747

回复到 #13015×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: XHTMLが出力できない (2005-02-26 18:15 by 匿名 #13016)

上を書いた者ですが、要望があります。
WebPub::PublishDescription で、amritaの全ての属性にアクセスできるようにしていただけませんか?

個人的には、手書きでid属性を明示・指定したいので、 escaped_id='__id' というのをよく使います。
いまは amritaのコンストラクタを書き換えちゃっていますが、気持ち悪いので、Webpubの中で解決したいです。

webpubのソースを見ると、amrita_publisher.rb にあるAmritaPublisher::config_templateをいじればいいのは分かるのですが、どうも eclipseの仕組みに慣れていないもので、何とも手が出ないです。
次回のバージョンアップのときでも考慮していただけるとありがたいです。
回复到 #13015

回复到 #13016×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: XHTMLが出力できない (2005-02-27 13:44 by 匿名 #13021)

解決策を提示していただき、ありがとうございます。
近いうちに、やろうと思います。
回复到 #13016

回复到 #13021×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

RE: XHTMLが出力できない [2] (2005-03-02 00:58 by 匿名 #13047)

堀川さんの改訂版に入れ替えれば万事解決ならうれしいのですが、
属性値置換の挙動が違うようですね。
例えば、head 部の、次の句がうまく変換できずに困っています。

<link id="start" rel="start" title="@start_title" href="@start_url" />

-->

<link rel="start" />


堀川さんパッチで XML互換の要素名、属性名ははうれしいですが、
属性値置換はデフォルトでは元のままがいいと思います。
(と、amritaのフォーラムに書き込むべきだが。。)
回复到 #12747

回复到 #13047×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录