るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.014秒)
トップページ > クエリ:attribute[x] > クエリ:attlistdecl[x]

別のキーワード

  1. attribute new
  2. attribute value
  3. element add_attribute
  4. rexml/document attribute
  5. rexml/document add_attribute

ライブラリ

モジュール

検索結果

REXML::StreamListener#attlistdecl(element_name, attributes, raw_content) -> () (18201.0)

DTDの属性リスト宣言をパースしたときに呼び出されるコールバックです。

...言をパースしたときに呼び出されるコールバックです。

@param element_name 要素名が文字列で渡されます
@param attributes 属性名とそのデフォルト値の対応が
{ 属性名文字列 => デフォルト値文字列(無ければnil) } という
...
...渡されます

=== 例
<!ATTLIST a att CDATA #REQUIRED xyz CDATA "foobar">
という属性リスト宣言に対しては
element_name: "a"
attribute
s: {"att"=>nil, "xyz"=>"foobar"}
raw_content: " \n<!ATTLIST a att CDATA #REQUIRED xyz CDATA \"foobar\">"
という引数が渡されます。...