[Gauche-devel-jp] Re: SXMLで属性値文字列にアポストロフィが含まれる場合の変換処理

Back to archive index

shelarcy shela****@capel*****
2004年 8月 23日 (月) 18:23:08 JST


On Sun, 22 Aug 2004 21:20:40 -1000 (HST), Shiro Kawai <shiro****@lava*****>  
wrote:
> To allow attribute values to contain both single and double
> quotes, the apostrophe or single-quote character (') MAY be
> represented as "&apos;", and the double-quote character (")
> as "&quot;".
>
> ともあるので、シングルクオートだけ実体参照にしてしまう方が楽かも
> しれません。
>
> そもそも今のコードだとattrに#\&や#\<が入っててもやばそうだし。

Sxmlcnv では '、&、<、> を実体参照させるコードを書いていました。
(SXML->XML じたい書き直してますが…)

参考までに

-- 
shelarcy <shela****@capel*****>
http://page.freett.com/shelarcy/



Gauche-devel-jp メーリングリストの案内
Back to archive index