Changeset 23130
- Timestamp:
- 11/10/08 16:56:02 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/XML-Liberal/trunk/lib/XML/Liberal/Remedy/UndeclaredNS.pm
r23129 r23130 44 44 my $ns = $namespaces{$prefix} || "http://example.org/unknown/$self->{prefix}#"; 45 45 46 my $match = $$xml_ref =~ s!^(<\?xml\s[^>]*?\?>\s*(?:<![^>]+>\s*)*<\S+)(?=\s*/?)!$1 xmlns:$prefix="$ns"!; 46 my $match = $$xml_ref =~ s{^(<\?xml\s[^>]*?\?>\s*(?:<![^>]+>\s*)*<\S+)(?=\s*/?)} 47 {$1 xmlns:$prefix="$ns"}; 47 48 return 1 if $match; 48 49
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)