495件ヒット
[1-100件を表示]
(0.103秒)
種類
- インスタンスメソッド (385)
- 特異メソッド (44)
- クラス (33)
- ライブラリ (22)
- 定数 (11)
ライブラリ
-
cgi
/ html (66) -
net
/ http (33) -
rexml
/ document (275) -
rexml
/ parsers / sax2parser (55) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (33)
クラス
-
Net
:: HTTPResponse (33) -
REXML
:: DocType (165) -
REXML
:: Document (33) -
REXML
:: Parsers :: SAX2Parser (55) -
REXML
:: Text (44)
モジュール
-
CGI
:: Html3 (11) -
CGI
:: Html4 (11) -
CGI
:: Html4Fr (11) -
CGI
:: Html4Tr (11) -
CGI
:: HtmlExtension (22) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (33)
キーワード
- << (11)
-
DEFAULT
_ ENTITIES (11) - Entity (11)
- ExternalEntity (11)
- NotationDecl (11)
- add (22)
-
attribute
_ of (11) -
attributes
_ of (11) - body (11)
-
cgi
/ session (11) -
doctype
_ end (11) - entities (11)
- entity (22)
- entitydecl (11)
-
external
_ id (11) - html (22)
- listen (55)
- name (11)
- namespaces (11)
- new (22)
- normalize (11)
- notation (11)
- notations (11)
- public (11)
-
read
_ body (11) -
rexml
/ parsers / ultralightparser (11) - system (11)
- unnormalize (11)
- write (11)
検索結果
先頭5件
-
REXML
:: StreamListener # doctype(name , pub _ sys , long _ name , uri) -> () (21213.0) -
文書型宣言(DTD)をパースしたときに呼び出されるコールバックメソッドです。
...pub_sys, long_name, uri はDTDが内部サブセットのみを
利用している場合には nil が渡されます。
@param name 宣言されているルート要素名が文字列で渡されます。
@param pub_sys "PUBLIC" もしくは "SYSTEM" が渡されます。nilが渡される場合......が、"PUBLIC"の場合は公開識別子が
文字列で渡されます
@param uri "SYSTEM" の場合は nil が、"PUBLIC" の場合はシステム識別子が渡されます
=== 例
<!DOCTYPE me PUBLIC "foo" "bar">
というDTDに対しては
name: "me"
pub_sys: "PUBLIC"
long_name......: "foo"
uri: "bar"
という引数が渡されます。
<!DOCTYPE root [
...
というDTDに対しては
name: "root"
pub_sys: nil
long_name: nil
uri: nil
という引数が渡されます。... -
REXML
:: SAX2Listener # doctype(name , pub _ sys , long _ name , uri) -> () (21201.0) -
文書型宣言(DTD)に出会った時に呼び出されるコールバックメソッドです。
...b_sys "PUBLIC" もしくは "SYSTEM" が渡されます。nilが渡される場合もあります。
@param long_name "SYSTEM" の場合はシステム識別子が、"PUBLIC"の場合は公開識別子が
文字列で渡されます
@param uri "SYSTEM" の場合は nil が、"PUBLIC" の場... -
CGI
:: Html3 # doctype (21101.0) -
@todo
@todo -
CGI
:: Html4 # doctype (21101.0) -
@todo
@todo -
CGI
:: Html4Fr # doctype (21101.0) -
@todo
@todo -
CGI
:: Html4Tr # doctype (21101.0) -
@todo
@todo -
REXML
:: Text # doctype -> REXML :: DocType | nil (18308.0) -
テキストノードが属する文書の DTD を返します。
...テキストノードが属する文書の DTD を返します。
そのような文書(REXML::Document)が存在しない、すなわち
テキストノードの親ノードを辿っても REXML::Document に到達しない、
場合には nil を返します。
@see REXML::DocType... -
REXML
:: Document # doctype -> REXML :: DocType | nil (18302.0) -
文書の DTD を返します。
...文書の DTD を返します。
文書が DTD を持たない場合は nil を返します。... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (9242.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。
...ト宣言で、 element という名前の要素の attribute という
名前の属性のデフォルト値を返します。
elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていない......かの場合は nil を返します。
@param element 要素名(文字列)
@param attribute 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book......UIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attribute_of("book", "publisher") # => "foobar publisher"
p doctype.attribute_of("bar", "foo") # => nil
p doctype.attribute_of("book", "baz") # => nil
p doctype.attribute_of("book", "title") # => ni... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (9236.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...L::Attribute の配列で返します。
名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books......<!ATTLIST book
author CDATA #REQUIRED
title CDATA #REQUIRED
publisher CDATA "foobar publisher">
]>
EOS
p doctype.attributes_of("book")
# => [author='', title='', publisher='foobar publisher']
p doctype.attributes_of("book")[0].name # => "author"
p doctype.attributes_o...