source: extensions/gsdl-video/trunk/installed/cmdline/lib/ruby/1.8/rexml/dtd/elementdecl.rb@ 18425

Last change on this file since 18425 was 18425, checked in by davidb, 15 years ago

Video extension to Greenstone

File size: 385 bytes
Line 
1require "rexml/child"
2module REXML
3 module DTD
4 class ElementDecl < Child
5 START = "<!ELEMENT"
6 START_RE = /^\s*#{START}/um
7 PATTERN_RE = /^\s*(#{START}.*?)>/um
8 PATTERN_RE = /^\s*#{START}\s+((?:[:\w_][-\.\w_]*:)?[-!\*\.\w_]*)(.*?)>/
9 #\s*((((["']).*?\5)|[^\/'">]*)*?)(\/)?>/um, true)
10
11 def initialize match
12 @name = match[1]
13 @rest = match[2]
14 end
15 end
16 end
17end
Note: See TracBrowser for help on using the repository browser.