SQF adds invalid xmlns value in keyword
Posted: Sun Feb 28, 2016 10:45 am
Hello,
I am new to SQF, so my syntax may be incorrect.
I would like to replace plaintext strings with associated <keyword> elements.
For example, look for "product name" and replace it with "<keyword keyref="prod_name" /> ".
Using SQF, I tried this:
However, this creates invalid XML output:
Which throws the error:
Thanks,
Nick
I am new to SQF, so my syntax may be incorrect.
I would like to replace plaintext strings with associated <keyword> elements.
For example, look for "product name" and replace it with "<keyword keyref="prod_name" /> ".
Using SQF, I tried this:
Code: Select all
<pattern>
<rule id="key_001" context="text()">
<report test="contains(., 'Product Name')" sqf:fix="replaceProdName" role="warning"
>key_002: Dolby Digital Plus has a key.</report>
<sqf:fix id="replaceProdName">
<sqf:description>
<sqf:title>Replace product name?</sqf:title>
</sqf:description>
<sqf:stringReplace regex="Product Name"><keyword keyref="prod_name"/>
</sqf:stringReplace>
</sqf:fix>
</rule>
</pattern>
Code: Select all
<keyword xmlns="http://purl.oclc.org/dsdl/schematron" keyref="prod_name"/>
What am I doing wrong?Attribute "xmlns" is not allowed to appear in element "keyword".
Thanks,
Nick