instrument-id test fails

Fellow forumites,
I am writing a set of custom rules and presets for
a) Symphobia
b) Symphobia iI
c) Sam Orchestral Essentails
d) The default orch patches in Kontakt 5
However, I am struggling with instrument-id tests. They all seem to fail. I take the ID from the shift-I and use to set flags (wind, brss, perch, strg, etc). The flag tests work to force the rule options (when I hard set them) but the tests to "set" the flags fail. The instrument-id tests failed when embedded right in the rules too - which is why I symbolized them via flags as I saw done in other preset libs.
So... I am stuck with a great plugin-id, perfect articulation catches, fine midi and keyswitching etc. But my instrument IDs fail.
Andy ideas?
Here's an example:
<?xml version="1.0" ?>
<rule-set version="1">
<dynamic-map id="kont">
<dynamic dynamic="ppppp" value="0" />
<dynamic dynamic="pppp" value="10" />
<dynamic dynamic="ppp" value="30" />
<dynamic dynamic="pp" value="40" />
<dynamic dynamic="p" value="50" />
<dynamic dynamic="mp" value="75" />
<dynamic dynamic="mf" value="85" />
<dynamic dynamic="f" value="100" />
<dynamic dynamic="ff" value="106" />
<dynamic dynamic="fff" value="112" />
<dynamic dynamic="ffff" value="120" />
<dynamic dynamic="fffff" value="127" />
</dynamic-map>
<plugin id="1315524405">
<setup>
<velocity-map id="kont" />
<hairpin-map id="kont" />
<hairpin-cc value="11" />
</setup>
<!-- Woodwinds ############################## -->
<rule name = "Woodwinds Flag">
<if instrument-id = "10001" /> <!-- taken right from shift-i on track -->
<set-flag name = "wind" /> <!-- this works when I just hard set it, below -->
</rule>
<rule name="default">
<channel-change channel = "1"/>
</rule>
<rule name="winds staccato">
<if flag = "wind" />
<if articulation = "staccato" />
<channel-change channel = "2" />
</rule>
<rule name="winds espressivo">
<if flag = "wind" />
<if technique = "espr" />
<channel-change channel = "3" />
</rule>
</plugin>
</rule-set>
- EOF
Thanks..
I am writing a set of custom rules and presets for
a) Symphobia
b) Symphobia iI
c) Sam Orchestral Essentails
d) The default orch patches in Kontakt 5
However, I am struggling with instrument-id tests. They all seem to fail. I take the ID from the shift-I and use to set flags (wind, brss, perch, strg, etc). The flag tests work to force the rule options (when I hard set them) but the tests to "set" the flags fail. The instrument-id tests failed when embedded right in the rules too - which is why I symbolized them via flags as I saw done in other preset libs.
So... I am stuck with a great plugin-id, perfect articulation catches, fine midi and keyswitching etc. But my instrument IDs fail.
Andy ideas?
Here's an example:
<?xml version="1.0" ?>
<rule-set version="1">
<dynamic-map id="kont">
<dynamic dynamic="ppppp" value="0" />
<dynamic dynamic="pppp" value="10" />
<dynamic dynamic="ppp" value="30" />
<dynamic dynamic="pp" value="40" />
<dynamic dynamic="p" value="50" />
<dynamic dynamic="mp" value="75" />
<dynamic dynamic="mf" value="85" />
<dynamic dynamic="f" value="100" />
<dynamic dynamic="ff" value="106" />
<dynamic dynamic="fff" value="112" />
<dynamic dynamic="ffff" value="120" />
<dynamic dynamic="fffff" value="127" />
</dynamic-map>
<plugin id="1315524405">
<setup>
<velocity-map id="kont" />
<hairpin-map id="kont" />
<hairpin-cc value="11" />
</setup>
<!-- Woodwinds ############################## -->
<rule name = "Woodwinds Flag">
<if instrument-id = "10001" /> <!-- taken right from shift-i on track -->
<set-flag name = "wind" /> <!-- this works when I just hard set it, below -->
</rule>
<rule name="default">
<channel-change channel = "1"/>
</rule>
<rule name="winds staccato">
<if flag = "wind" />
<if articulation = "staccato" />
<channel-change channel = "2" />
</rule>
<rule name="winds espressivo">
<if flag = "wind" />
<if technique = "espr" />
<channel-change channel = "3" />
</rule>
</plugin>
</rule-set>
- EOF
Thanks..