]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug #1850340 that added namespace to numerical character
authorBob Stayton <bobs@sagehill.net>
Wed, 19 Dec 2007 21:23:30 +0000 (21:23 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 19 Dec 2007 21:23:30 +0000 (21:23 +0000)
references.

releasetools/xslns-build

index 0774f6187e594622651a83bd2a323c6472278b44..4b3fe827efb234ac4d7045ba64cb8cbc91a5dedd 100755 (executable)
@@ -46,7 +46,7 @@ my $ns = "[A-Za-z]+";
 # other names
 my $n = "[A-Za-z][A-Za-z0-9]+";
 # xml names
-my $w = "[A-Za-z][-A-Za-z0-9._]+";
+my $w = "[A-Za-z][-A-Za-z0-9._#]+";
 # docbook element names (lowercase and numbers)
 my $dbname = "[a-z][a-z0-9]+";
 
@@ -294,7 +294,7 @@ sub nsfilter {
       $attvalue = '';
     }
 
-    while ( $attvalue =~ /^(.*?)(\$$w|$w\(|$ns:$n|$w:|db:$n|\@$n:$n|'.*?'|&$w;|\@$w|not \(|stringlength \(|normalize-space \()(.*$)/sg ) {
+    while ( $attvalue =~ /^(.*?)(\$$w|$w\(|$ns:$n|$w:|db:$n|\@$n:$n|'.*?'|&$w;|&#$w;|\@$w|not \(|stringlength \(|normalize-space \()(.*$)/sg ) {
   
       # process the leading content which is not pass through
       &addnamespace($1, $Output);