66件ヒット
[1-66件を表示]
(0.069秒)
ライブラリ
-
rexml
/ document (11) - rss (55)
キーワード
- ImageFavicon (22)
- ImageItem (11)
- NotationDecl (11)
検索結果
先頭5件
-
RSS
:: RDF :: Channel :: Image (21001.0) -
-
RSS
:: Rss :: Channel :: Image (21001.0) -
-
RSS
:: ImageFaviconModel :: ImageFavicon (12001.0) -
-
RSS
:: ImageItemModel :: ImageItem (12001.0) -
-
RSS
:: RDF :: Channel :: ImageFavicon (9001.0) -
-
REXML
:: NotationDecl (6067.0) -
DTD の記法宣言を表すクラスです。
...です。
//emlist[][ruby]{
require 'rexml/document'
doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE foo [
<!NOTATION type-image-svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!NOTATION type-image-gif PUBLIC "image/gif">
<!NOTATI......SYSTEM "http://example.org/foobar.dtd">
]>
EOS
svg = doctype.notation("type-image-svg")
p svg.name # => "type-image-svg"
p svg.to_s # => "<!NOTATION type-image-svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\" \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">"
p svg.public # => "-//W3C//DTD SVG 1......"type-image-gif")
p gif.name # => "type-image-gif"
p gif.to_s # => "<!NOTATION type-image-gif PUBLIC \"image/gif\">"
p gif.public # => "image/gif"
p gif.system # => nil
foobar = doctype.notation("foobar")
p foobar.name # => "foobar"
p foobar.to_s # => "<!NOTATION foobar SYSTEM \"http://example.org/...