Test results for Solaris x86 |
Test for elements generated by regular expressions from echema options and ensure that the element names that are specified in the option do not override the schema element names.
Pass
cat _INPUT_DATA_ ¦ xmlfy -S schema.dtd
line 1 abc line 2 abc def line 3 abc line 4 abc def line 5 ghi line 6 abc
<!-- xmlfy-args: -W 'i/(abc).*(def)/abc x=\"1\",def y=\"2\"' -X trimtagclose --> <!ELEMENT a(pair)> <!ELEMENT pair(one,two)> <!ELEMENT one (#PCDATA)> <!ELEMENT two(#PCDATA)>
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE a SYSTEM "schema.dtd"> <a> <pair> <one>abc</one> <two>def</two> </pair> </a>