in reply to Re^6: LibXML setNodeName error
in thread LibXML setNodeName error
Well, in that case perhaps add next unless $el->getAttribute('name')=~/^\w+$/; into the loop I showed, or, since that might reject valid element names, reject the unwanted names with next if $el->getAttribute('name')=~/[\{\}]/;, adding more there as necessary.
(Looking back at the original problem statement, I do have to say I'm not sure why you want to manipulate your XSL like this in the first place. XML and especially XSL is somewhat verbose in its nature...)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: LibXML setNodeName error
by Anonymous Monk on Jun 27, 2017 at 14:53 UTC | |
by haukex (Archbishop) on Jun 27, 2017 at 14:57 UTC | |
by Anonymous Monk on Jun 27, 2017 at 15:03 UTC | |
by haukex (Archbishop) on Jun 27, 2017 at 15:25 UTC |