BL Coding How can I debug XSLT?

Users who are viewing this thread

strawmann

Recruit
I want to make changes to the item_holsters XML in the Native module. When I copy the original XML and my XSLT into an online XSLT tester, the changes are made correctly. However, when I put the same XSLT into a Bannerlord mod and load it after the Native module, nothing happens.

I'm not sure how to go about narrowing down the problem from here. None of the log files in ProgramData have any relevant information, nor have any error messages appeared in-game.

SubModule.xml
XML:
<Module>
  <Name value="Angled Javelin Holsters"/>
  <Id value="AngledJavelinHolsters"/>
  <Version value="e1.0.0"/>
  <SingleplayerModule value="true"/>
  <DependedModules>
    <DependedModule Id="Native" DependentVersion="e1.7.2"/>
  </DependedModules>
  <Xmls>
    <XmlNode>
      <XmlName id="base" path="delta_item_holsters" /> <!-- also tried id="item_holsters", didn't work -->
      <IncludedGameTypes>
          <GameType value = "Campaign"/>
          <GameType value = "CampaignStoryMode"/>
        <GameType value = "CustomGame"/>
        <GameType value = "EditorGame"/>
      </IncludedGameTypes>
    </XmlNode>
  </Xmls>
</Module>

ModuleData/delta_item_holsters.xslt
XML:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins']/@holster_rotation_yaw_pitch_roll">
        <xsl:attribute name="holster_rotation_yaw_pitch_roll">
            <xsl:value-of select="'0, -40, -175'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins']/@holster_position">
        <xsl:attribute name="holster_position">
            <xsl:value-of select="'0.1, -0.28, -0.05'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins_2']/@holster_rotation_yaw_pitch_roll">
        <xsl:attribute name="holster_rotation_yaw_pitch_roll">
            <xsl:value-of select="'0, -40, -175'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins_2']/@holster_position">
        <xsl:attribute name="holster_position">
            <xsl:value-of select="'-0.05, -0.28, 0.05'"/>
        </xsl:attribute>
    </xsl:template>
</xsl:stylesheet>

Native/ModuleData/item_holsters.xml
XML:
<base>
    <item_holsters>
        <item_holster id="default" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="default" holster_skeleton="holster_skeleton" holster_bone="biped_thorax" holster_position="-0.440, -0.040, 0.230" holster_rotation_yaw_pitch_roll="85.560, 17.520, -94.200"/>
        <item_holster id="thorax" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax" holster_skeleton="holster_skeleton" holster_bone="biped_thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="right_finger" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="right_finger" holster_skeleton="holster_skeleton" holster_bone="biped_item_r" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="left_finger" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="left_finger" holster_skeleton="holster_skeleton" holster_bone="biped_item_l" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="left_forearm" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="left_forearm" holster_skeleton="holster_skeleton" holster_bone="biped_forearm1_l" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_bow" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_bow" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_crossbow" equip_action="act_equip_crossbow" equip_action_left_stance="act_equip_crossbow_left_stance" unequip_action="act_unequip_crossbow" unequip_action_left_stance="act_unequip_crossbow_left_stance" show_holster_when_drawn="false" group_name="thorax_back_crossbow" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen" holster_skeleton="holster_skeleton_back" holster_bone="biped_abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_right" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_right" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_left" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_left" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_front" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_front" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_left" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_left" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_right" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_right" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_left_2" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_left_2" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_right_2" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_right_2" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_far" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_far" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_down" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_down" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="axe_back_show_holster" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="true" group_name="back_axe_hols" holster_skeleton="holster_skeleton_back" base_set="thorax_down" holster_position="0.160, -0.190, 0.000" holster_rotation_yaw_pitch_roll="2.940, -106.170, -174.010"/>
        <item_holster id="sword_back_show_holster" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_hols" holster_skeleton="holster_skeleton_back" base_set="thorax_back" holster_position="0.090, -0.170, -0.070" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="sword_left_hip_show_holster" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_hols" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_front" holster_position="0.120, -0.050, 0.240" holster_rotation_yaw_pitch_roll="64.460, 59.620, -139.980"/>
        <item_holster id="axe_back" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.170, -0.180, 0.000" holster_rotation_yaw_pitch_roll="3.790, -106.410, -170.670"/>
        <item_holster id="axe_back_2" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.170, -0.180, 0.020" holster_rotation_yaw_pitch_roll="0.180, 72.880, 8.130"/>
        <item_holster id="axe_back_3" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.140, -0.180, -0.090" holster_rotation_yaw_pitch_roll="11.900, -106.510, -171.370"/>
        <item_holster id="axe_back_4" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.140, -0.180, 0.090" holster_rotation_yaw_pitch_roll="3.700, 72.120, 5.580"/>
        <item_holster id="polearm_back" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.070, -0.180, -0.020" holster_rotation_yaw_pitch_roll="0.790, -105.810, -177.170"/>
        <item_holster id="polearm_back_2" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.060, -0.180, 0.040" holster_rotation_yaw_pitch_roll="0.660, 75.470, 4.210"/>
        <item_holster id="polearm_back_3" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.050, -0.180, -0.060" holster_rotation_yaw_pitch_roll="0.320, -105.830, -175.510"/>
        <item_holster id="polearm_back_4" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.050, -0.180, 0.080" holster_rotation_yaw_pitch_roll="0.660, 75.470, 4.210"/>
        <item_holster id="sword_back" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.210, -0.160, -0.050" holster_rotation_yaw_pitch_roll="6.070, 73.440, -174.020"/>
        <item_holster id="sword_back_2" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.220, -0.170, 0.050" holster_rotation_yaw_pitch_roll="1.310, -106.600, 3.790"/>
        <item_holster id="sword_back_3" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.200, -0.170, -0.120" holster_rotation_yaw_pitch_roll="6.070, 73.440, -174.020"/>
        <item_holster id="sword_back_4" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.200, -0.170, 0.120" holster_rotation_yaw_pitch_roll="1.310, -106.600, 3.790"/>
        <item_holster id="shield" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.100, -0.200, 0.000" holster_rotation_yaw_pitch_roll="0.000, -90.000, 90.000"/>
        <item_holster id="shield_2" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="-0.070, -0.220, 0.000" holster_rotation_yaw_pitch_roll="0.160, -90.310, 93.000"/>
        <item_holster id="shield_3" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="-0.040, -0.210, 0.000" holster_rotation_yaw_pitch_roll="0.130, -90.320, 95.280"/>
        <item_holster id="shield_4" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="-0.110, -0.290, 0.000" holster_rotation_yaw_pitch_roll="0.480, -90.160, 95.830"/>
        <item_holster id="shield_kite" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.050, -0.180, 0.000" holster_rotation_yaw_pitch_roll="0.000, -90.000, 93.000"/>
        <item_holster id="shield_oval" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="0.010, -0.170, 0.000" holster_rotation_yaw_pitch_roll="-0.850, -90.060, 94.000"/>
        <item_holster id="shield_round" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.110, -0.250, 0.000" holster_rotation_yaw_pitch_roll="-0.910, -89.160, 95.000"/>
        <item_holster id="mace_right_hip" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="right_hip_mace" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_front" holster_position="-0.040, 0.110, -0.230" holster_rotation_yaw_pitch_roll="-67.520, 43.470, -41.420"/>
        <item_holster id="axe_right_hip" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="hip_axe_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_right" holster_position="0.000, -0.040, -0.250" holster_rotation_yaw_pitch_roll="-68.070, -32.710, -114.020"/>
        <item_holster id="axe_right_hip_2" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="hip_axe_1" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen" holster_position="-0.020, 0.030, -0.250" holster_rotation_yaw_pitch_roll="-69.930, 21.750, -59.660"/>
        <item_holster id="sword_left_hip" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="false" group_name="hip_left_sword_3" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.090, 0.010, 0.240" holster_rotation_yaw_pitch_roll="78.330, 4.450, -70.400"/>
        <item_holster id="sword_left_hip_2" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_2" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen" holster_position="0.060, 0.090, 0.220" holster_rotation_yaw_pitch_roll="74.060, -37.480, -27.040"/>
        <item_holster id="sword_left_hip_3" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_1" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_front" holster_position="0.100, -0.070, 0.220" holster_rotation_yaw_pitch_roll="56.180, 79.790, -147.870"/>
        <item_holster id="dagger_left_hip" equip_action="act_equip_dagger_front_left" equip_action_left_stance="act_equip_dagger_front_left_left_stance" unequip_action="act_unequip_dagger_front_left" unequip_action_left_stance="act_unequip_dagger_front_left_left_stance" show_holster_when_drawn="false" group_name="hip_dagger_1" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="-0.080, 0.120, 0.210" holster_rotation_yaw_pitch_roll="53.320, -71.130, -13.060"/>
        <item_holster id="dagger_right_hip" equip_action="act_equip_dagger_front_right" equip_action_left_stance="act_equip_dagger_front_right_left_stance" unequip_action="act_unequip_dagger_front_right" unequip_action_left_stance="act_unequip_dagger_front_right_left_stance" show_holster_when_drawn="false" group_name="hip_dagger_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen" holster_position="-0.060, -0.060, -0.260" holster_rotation_yaw_pitch_roll="81.610, 78.670, -128.070"/>
        <item_holster id="crossbow_back" equip_action="act_equip_crossbow" equip_action_left_stance="act_equip_crossbow_left_stance" unequip_action="act_unequip_crossbow" unequip_action_left_stance="act_unequip_crossbow_left_stance" show_holster_when_drawn="false" group_name="back_crossbow" holster_skeleton="holster_skeleton_back" base_set="thorax_back_crossbow" holster_position="0.120, -0.190, 0.030" holster_rotation_yaw_pitch_roll="1.390, -62.330, -175.200"/>
        <item_holster id="bow_back" equip_action="act_equip_bow_back" equip_action_left_stance="act_equip_bow_back_left_stance" unequip_action="act_unequip_bow_back" unequip_action_left_stance="act_unequip_bow_back_left_stance" show_holster_when_drawn="false" group_name="back_bow" holster_skeleton="holster_skeleton_back" base_set="thorax_back_bow" holster_position="-0.050, -0.140, -0.030" holster_rotation_yaw_pitch_roll="62.200, -0.110, 90.910"/>
        <item_holster id="bow_hip" equip_action="act_equip_bow_left_hip" equip_action_left_stance="act_equip_bow_left_hip_left_stance" unequip_action="act_unequip_bow_left_hip" unequip_action_left_stance="act_unequip_bow_left_hip_left_stance" show_holster_when_drawn="true" group_name="bow_hip_1" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="-0.040, -0.040, 0.260" holster_rotation_yaw_pitch_roll="-72.910, 104.950, 90.520"/>
        <item_holster id="bow_back_2" equip_action="act_equip_bow_back" equip_action_left_stance="act_equip_bow_back_left_stance" unequip_action="act_unequip_bow_back" unequip_action_left_stance="act_unequip_bow_back_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back" holster_position="-0.040, -0.150, 0.050" holster_rotation_yaw_pitch_roll="60.350, -179.900, -89.280"/>
        <item_holster id="bow_hip_2" equip_action="act_equip_bow_left_hip" equip_action_left_stance="act_equip_bow_left_hip_left_stance" unequip_action="act_unequip_bow_left_hip" unequip_action_left_stance="act_unequip_bow_left_hip_left_stance" show_holster_when_drawn="true" group_name="bow_hip_2" holster_skeleton="holster_skeleton" base_set="abdomen_right" holster_position="-0.050, 0.000, -0.290" holster_rotation_yaw_pitch_roll="-66.560, -76.440, -89.370"/>
        <item_holster id="quiver_back_top" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_quiver" base_set="thorax_back_near" holster_position="0.100, -0.200, -0.080" holster_rotation_yaw_pitch_roll="3.250, 100.930, 2.800"/>
        <item_holster id="quiver_back_top_2" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="back_top_2" holster_skeleton="holster_skeleton_quiver" base_set="thorax_back" holster_position="0.130, -0.200, 0.080" holster_rotation_yaw_pitch_roll="1.220, -98.850, -175.750"/>
        <item_holster id="quiver_back_middle" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_middle" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_front" holster_position="0.140, -0.180, 0.010" holster_rotation_yaw_pitch_roll="-4.510, 167.830, 21.760"/>
        <item_holster id="quiver_back_lower" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_lower" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_left" holster_position="0.080, -0.190, -0.020" holster_rotation_yaw_pitch_roll="-13.470, -176.080, 114.390"/>
        <item_holster id="quiver_back_lower_2" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_middle" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_front" holster_position="0.250, -0.140, -0.020" holster_rotation_yaw_pitch_roll="-14.620, -174.070, 134.980"/>
        <item_holster id="quiver_bolts" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="bolts_1" holster_skeleton="holster_skeleton" base_set="abdomen_left" holster_position="-0.020, -0.150, -0.200" holster_rotation_yaw_pitch_roll="-32.270, -85.020, -157.390"/>
        <item_holster id="quiver_bolts_2" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="bolts_2" holster_skeleton="holster_skeleton" base_set="abdomen_right" holster_position="-0.040, -0.020, -0.270" holster_rotation_yaw_pitch_roll="78.450, 11.550, 96.000"/>
        <item_holster id="javelins" equip_action="act_equip_javelin" equip_action_left_stance="act_equip_javelin_left_stance" unequip_action="act_unequip_javelin" unequip_action_left_stance="act_unequip_javelin_left_stance" show_holster_when_drawn="true" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near" holster_position="-0.020, -0.200, -0.090" holster_rotation_yaw_pitch_roll="-2.250, -94.190, -175.910"/>
        <item_holster id="throwing_axe" equip_action="act_equip_throwing_axe" equip_action_left_stance="act_equip_throwing_axe_left_stance" unequip_action="act_unequip_throwing_axe" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="false" group_name="right_hip" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_front" holster_position="0.100, -0.060, -0.200" holster_rotation_yaw_pitch_roll="-72.540, -7.070, -93.210"/>
        <item_holster id="javelins_2" equip_action="act_equip_javelin" equip_action_left_stance="act_equip_javelin_left_stance" unequip_action="act_unequip_javelin" unequip_action_left_stance="act_unequip_javelin_left_stance" show_holster_when_drawn="true" group_name="back_top_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near" holster_position="-0.020, -0.200, 0.090" holster_rotation_yaw_pitch_roll="4.360, -90.380, -174.950"/>
        <item_holster id="throwing_axe_2" equip_action="act_equip_throwing_axe" equip_action_left_stance="act_equip_throwing_axe_left_stance" unequip_action="act_unequip_throwing_axe" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="false" group_name="right_hip_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_left" holster_position="0.080, 0.070, -0.200" holster_rotation_yaw_pitch_roll="-61.480, 57.600, -31.250"/>
        <item_holster id="throwing_stone" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_stone" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.020, 0.010, 0.220" holster_rotation_yaw_pitch_roll="-2.630, -83.360, -177.050"/>
        <item_holster id="throwing_stone_2" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_stone_2" holster_skeleton="holster_skeleton_back" base_set="abdomen" holster_position="0.050, -0.090, 0.180" holster_rotation_yaw_pitch_roll="-26.060, -86.360, -172.160"/>
        <item_holster id="throwing_knife" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_knife" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.030, 0.050, 0.240" holster_rotation_yaw_pitch_roll="-81.900, -176.290, 96.250"/>
        <item_holster id="throwing_knife_2" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_knife_2" holster_skeleton="holster_skeleton_back" base_set="abdomen" holster_position="0.050, -0.130, 0.200" holster_rotation_yaw_pitch_roll="-53.960, 103.470, 23.090"/>
    </item_holsters>
</base>
 

NPC99

Baron
M&BWBWF&SVC
I want to make changes to the item_holsters XML in the Native module. When I copy the original XML and my XSLT into an online XSLT tester, the changes are made correctly. However, when I put the same XSLT into a Bannerlord mod and load it after the Native module, nothing happens.

I'm not sure how to go about narrowing down the problem from here. None of the log files in ProgramData have any relevant information, nor have any error messages appeared in-game.

SubModule.xml
XML:
<Module>
  <Name value="Angled Javelin Holsters"/>
  <Id value="AngledJavelinHolsters"/>
  <Version value="e1.0.0"/>
  <SingleplayerModule value="true"/>
  <DependedModules>
    <DependedModule Id="Native" DependentVersion="e1.7.2"/>
  </DependedModules>
  <Xmls>
    <XmlNode>
      <XmlName id="base" path="delta_item_holsters" /> <!-- also tried id="item_holsters", didn't work -->
      <IncludedGameTypes>
          <GameType value = "Campaign"/>
          <GameType value = "CampaignStoryMode"/>
        <GameType value = "CustomGame"/>
        <GameType value = "EditorGame"/>
      </IncludedGameTypes>
    </XmlNode>
  </Xmls>
</Module>

ModuleData/delta_item_holsters.xslt
XML:
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins']/@holster_rotation_yaw_pitch_roll">
        <xsl:attribute name="holster_rotation_yaw_pitch_roll">
            <xsl:value-of select="'0, -40, -175'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins']/@holster_position">
        <xsl:attribute name="holster_position">
            <xsl:value-of select="'0.1, -0.28, -0.05'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins_2']/@holster_rotation_yaw_pitch_roll">
        <xsl:attribute name="holster_rotation_yaw_pitch_roll">
            <xsl:value-of select="'0, -40, -175'"/>
        </xsl:attribute>
    </xsl:template>

    <xsl:template match="item_holster[@id='javelins_2']/@holster_position">
        <xsl:attribute name="holster_position">
            <xsl:value-of select="'-0.05, -0.28, 0.05'"/>
        </xsl:attribute>
    </xsl:template>
</xsl:stylesheet>

Native/ModuleData/item_holsters.xml
XML:
<base>
    <item_holsters>
        <item_holster id="default" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="default" holster_skeleton="holster_skeleton" holster_bone="biped_thorax" holster_position="-0.440, -0.040, 0.230" holster_rotation_yaw_pitch_roll="85.560, 17.520, -94.200"/>
        <item_holster id="thorax" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax" holster_skeleton="holster_skeleton" holster_bone="biped_thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="right_finger" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="right_finger" holster_skeleton="holster_skeleton" holster_bone="biped_item_r" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="left_finger" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="left_finger" holster_skeleton="holster_skeleton" holster_bone="biped_item_l" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="left_forearm" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="left_forearm" holster_skeleton="holster_skeleton" holster_bone="biped_forearm1_l" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_bow" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_bow" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_crossbow" equip_action="act_equip_crossbow" equip_action_left_stance="act_equip_crossbow_left_stance" unequip_action="act_unequip_crossbow" unequip_action_left_stance="act_unequip_crossbow_left_stance" show_holster_when_drawn="false" group_name="thorax_back_crossbow" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen" holster_skeleton="holster_skeleton_back" holster_bone="biped_abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_right" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_right" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_left" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_left" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="abdomen_front" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="abdomen_front" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_left" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_left" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_right" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_right" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_left_2" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_left_2" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near_right_2" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near_right_2" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_near" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_near" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back_far" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back_far" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_back" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_back" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="thorax_down" equip_action="" equip_action_left_stance="" unequip_action="" unequip_action_left_stance="" show_holster_when_drawn="false" group_name="thorax_down" holster_skeleton="holster_skeleton" base_set="thorax" holster_position="0.000, 0.000, 0.000" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="axe_back_show_holster" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="true" group_name="back_axe_hols" holster_skeleton="holster_skeleton_back" base_set="thorax_down" holster_position="0.160, -0.190, 0.000" holster_rotation_yaw_pitch_roll="2.940, -106.170, -174.010"/>
        <item_holster id="sword_back_show_holster" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_hols" holster_skeleton="holster_skeleton_back" base_set="thorax_back" holster_position="0.090, -0.170, -0.070" holster_rotation_yaw_pitch_roll="0.000, 0.000, 0.000"/>
        <item_holster id="sword_left_hip_show_holster" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_hols" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_front" holster_position="0.120, -0.050, 0.240" holster_rotation_yaw_pitch_roll="64.460, 59.620, -139.980"/>
        <item_holster id="axe_back" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.170, -0.180, 0.000" holster_rotation_yaw_pitch_roll="3.790, -106.410, -170.670"/>
        <item_holster id="axe_back_2" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.170, -0.180, 0.020" holster_rotation_yaw_pitch_roll="0.180, 72.880, 8.130"/>
        <item_holster id="axe_back_3" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.140, -0.180, -0.090" holster_rotation_yaw_pitch_roll="11.900, -106.510, -171.370"/>
        <item_holster id="axe_back_4" equip_action="act_equip_axe_back" equip_action_left_stance="act_equip_axe_back_left_stance" unequip_action="act_unequip_axe_back" unequip_action_left_stance="act_unequip_axe_back_left_stance" show_holster_when_drawn="false" group_name="back_axe_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.140, -0.180, 0.090" holster_rotation_yaw_pitch_roll="3.700, 72.120, 5.580"/>
        <item_holster id="polearm_back" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.070, -0.180, -0.020" holster_rotation_yaw_pitch_roll="0.790, -105.810, -177.170"/>
        <item_holster id="polearm_back_2" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.060, -0.180, 0.040" holster_rotation_yaw_pitch_roll="0.660, 75.470, 4.210"/>
        <item_holster id="polearm_back_3" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.050, -0.180, -0.060" holster_rotation_yaw_pitch_roll="0.320, -105.830, -175.510"/>
        <item_holster id="polearm_back_4" equip_action="act_equip_spear" equip_action_left_stance="act_equip_spear_left_stance" unequip_action="act_unequip_spear" unequip_action_left_stance="act_unequip_spear_left_stance" show_holster_when_drawn="false" group_name="back_polearm_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.050, -0.180, 0.080" holster_rotation_yaw_pitch_roll="0.660, 75.470, 4.210"/>
        <item_holster id="sword_back" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_1" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="0.210, -0.160, -0.050" holster_rotation_yaw_pitch_roll="6.070, 73.440, -174.020"/>
        <item_holster id="sword_back_2" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="0.220, -0.170, 0.050" holster_rotation_yaw_pitch_roll="1.310, -106.600, 3.790"/>
        <item_holster id="sword_back_3" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="0.200, -0.170, -0.120" holster_rotation_yaw_pitch_roll="6.070, 73.440, -174.020"/>
        <item_holster id="sword_back_4" equip_action="act_equip_2h" equip_action_left_stance="act_equip_2h_left_stance" unequip_action="act_unequip_2h" unequip_action_left_stance="act_unequip_2h_left_stance" show_holster_when_drawn="true" group_name="back_sword_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right_2" holster_position="0.200, -0.170, 0.120" holster_rotation_yaw_pitch_roll="1.310, -106.600, 3.790"/>
        <item_holster id="shield" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.100, -0.200, 0.000" holster_rotation_yaw_pitch_roll="0.000, -90.000, 90.000"/>
        <item_holster id="shield_2" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left" holster_position="-0.070, -0.220, 0.000" holster_rotation_yaw_pitch_roll="0.160, -90.310, 93.000"/>
        <item_holster id="shield_3" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_3" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_left_2" holster_position="-0.040, -0.210, 0.000" holster_rotation_yaw_pitch_roll="0.130, -90.320, 95.280"/>
        <item_holster id="shield_4" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_shield_4" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near_right" holster_position="-0.110, -0.290, 0.000" holster_rotation_yaw_pitch_roll="0.480, -90.160, 95.830"/>
        <item_holster id="shield_kite" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.050, -0.180, 0.000" holster_rotation_yaw_pitch_roll="0.000, -90.000, 93.000"/>
        <item_holster id="shield_oval" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="0.010, -0.170, 0.000" holster_rotation_yaw_pitch_roll="-0.850, -90.060, 94.000"/>
        <item_holster id="shield_round" equip_action="act_equip_shield" equip_action_left_stance="act_equip_shield_left_stance" unequip_action="act_unequip_shield" unequip_action_left_stance="act_unequip_shield_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_far" holster_position="-0.110, -0.250, 0.000" holster_rotation_yaw_pitch_roll="-0.910, -89.160, 95.000"/>
        <item_holster id="mace_right_hip" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="right_hip_mace" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_front" holster_position="-0.040, 0.110, -0.230" holster_rotation_yaw_pitch_roll="-67.520, 43.470, -41.420"/>
        <item_holster id="axe_right_hip" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="hip_axe_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_right" holster_position="0.000, -0.040, -0.250" holster_rotation_yaw_pitch_roll="-68.070, -32.710, -114.020"/>
        <item_holster id="axe_right_hip_2" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="hip_axe_1" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen" holster_position="-0.020, 0.030, -0.250" holster_rotation_yaw_pitch_roll="-69.930, 21.750, -59.660"/>
        <item_holster id="sword_left_hip" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="false" group_name="hip_left_sword_3" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.090, 0.010, 0.240" holster_rotation_yaw_pitch_roll="78.330, 4.450, -70.400"/>
        <item_holster id="sword_left_hip_2" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_2" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen" holster_position="0.060, 0.090, 0.220" holster_rotation_yaw_pitch_roll="74.060, -37.480, -27.040"/>
        <item_holster id="sword_left_hip_3" equip_action="act_equip_sword" equip_action_left_stance="act_equip_sword_left_stance" unequip_action="act_unequip_sword" unequip_action_left_stance="act_unequip_sword_left_stance" show_holster_when_drawn="true" group_name="hip_left_sword_1" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_front" holster_position="0.100, -0.070, 0.220" holster_rotation_yaw_pitch_roll="56.180, 79.790, -147.870"/>
        <item_holster id="dagger_left_hip" equip_action="act_equip_dagger_front_left" equip_action_left_stance="act_equip_dagger_front_left_left_stance" unequip_action="act_unequip_dagger_front_left" unequip_action_left_stance="act_unequip_dagger_front_left_left_stance" show_holster_when_drawn="false" group_name="hip_dagger_1" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="-0.080, 0.120, 0.210" holster_rotation_yaw_pitch_roll="53.320, -71.130, -13.060"/>
        <item_holster id="dagger_right_hip" equip_action="act_equip_dagger_front_right" equip_action_left_stance="act_equip_dagger_front_right_left_stance" unequip_action="act_unequip_dagger_front_right" unequip_action_left_stance="act_unequip_dagger_front_right_left_stance" show_holster_when_drawn="false" group_name="hip_dagger_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen" holster_position="-0.060, -0.060, -0.260" holster_rotation_yaw_pitch_roll="81.610, 78.670, -128.070"/>
        <item_holster id="crossbow_back" equip_action="act_equip_crossbow" equip_action_left_stance="act_equip_crossbow_left_stance" unequip_action="act_unequip_crossbow" unequip_action_left_stance="act_unequip_crossbow_left_stance" show_holster_when_drawn="false" group_name="back_crossbow" holster_skeleton="holster_skeleton_back" base_set="thorax_back_crossbow" holster_position="0.120, -0.190, 0.030" holster_rotation_yaw_pitch_roll="1.390, -62.330, -175.200"/>
        <item_holster id="bow_back" equip_action="act_equip_bow_back" equip_action_left_stance="act_equip_bow_back_left_stance" unequip_action="act_unequip_bow_back" unequip_action_left_stance="act_unequip_bow_back_left_stance" show_holster_when_drawn="false" group_name="back_bow" holster_skeleton="holster_skeleton_back" base_set="thorax_back_bow" holster_position="-0.050, -0.140, -0.030" holster_rotation_yaw_pitch_roll="62.200, -0.110, 90.910"/>
        <item_holster id="bow_hip" equip_action="act_equip_bow_left_hip" equip_action_left_stance="act_equip_bow_left_hip_left_stance" unequip_action="act_unequip_bow_left_hip" unequip_action_left_stance="act_unequip_bow_left_hip_left_stance" show_holster_when_drawn="true" group_name="bow_hip_1" holster_skeleton="holster_skeleton" base_set="abdomen" holster_position="-0.040, -0.040, 0.260" holster_rotation_yaw_pitch_roll="-72.910, 104.950, 90.520"/>
        <item_holster id="bow_back_2" equip_action="act_equip_bow_back" equip_action_left_stance="act_equip_bow_back_left_stance" unequip_action="act_unequip_bow_back" unequip_action_left_stance="act_unequip_bow_back_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back" holster_position="-0.040, -0.150, 0.050" holster_rotation_yaw_pitch_roll="60.350, -179.900, -89.280"/>
        <item_holster id="bow_hip_2" equip_action="act_equip_bow_left_hip" equip_action_left_stance="act_equip_bow_left_hip_left_stance" unequip_action="act_unequip_bow_left_hip" unequip_action_left_stance="act_unequip_bow_left_hip_left_stance" show_holster_when_drawn="true" group_name="bow_hip_2" holster_skeleton="holster_skeleton" base_set="abdomen_right" holster_position="-0.050, 0.000, -0.290" holster_rotation_yaw_pitch_roll="-66.560, -76.440, -89.370"/>
        <item_holster id="quiver_back_top" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="back_top" holster_skeleton="holster_skeleton_quiver" base_set="thorax_back_near" holster_position="0.100, -0.200, -0.080" holster_rotation_yaw_pitch_roll="3.250, 100.930, 2.800"/>
        <item_holster id="quiver_back_top_2" equip_action="act_equip_default" equip_action_left_stance="act_equip_default_left_stance" unequip_action="act_unequip_default" unequip_action_left_stance="act_unequip_default_left_stance" show_holster_when_drawn="false" group_name="back_top_2" holster_skeleton="holster_skeleton_quiver" base_set="thorax_back" holster_position="0.130, -0.200, 0.080" holster_rotation_yaw_pitch_roll="1.220, -98.850, -175.750"/>
        <item_holster id="quiver_back_middle" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_middle" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_front" holster_position="0.140, -0.180, 0.010" holster_rotation_yaw_pitch_roll="-4.510, 167.830, 21.760"/>
        <item_holster id="quiver_back_lower" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_lower" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_left" holster_position="0.080, -0.190, -0.020" holster_rotation_yaw_pitch_roll="-13.470, -176.080, 114.390"/>
        <item_holster id="quiver_back_lower_2" equip_action="act_equip_quiver_middle_lower" equip_action_left_stance="act_equip_quiver_middle_lower_left_stance" unequip_action="act_unequip_quiver_middle_lower" unequip_action_left_stance="act_unequip_quiver_middle_lower_left_stance" show_holster_when_drawn="false" group_name="back_middle" holster_skeleton="holster_skeleton_quiver" base_set="abdomen_front" holster_position="0.250, -0.140, -0.020" holster_rotation_yaw_pitch_roll="-14.620, -174.070, 134.980"/>
        <item_holster id="quiver_bolts" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="bolts_1" holster_skeleton="holster_skeleton" base_set="abdomen_left" holster_position="-0.020, -0.150, -0.200" holster_rotation_yaw_pitch_roll="-32.270, -85.020, -157.390"/>
        <item_holster id="quiver_bolts_2" equip_action="act_equip_axe_left_hip" equip_action_left_stance="act_equip_axe_left_hip_left_stance" unequip_action="act_unequip_axe_left_hip" unequip_action_left_stance="act_unequip_axe_left_hip_left_stance" show_holster_when_drawn="false" group_name="bolts_2" holster_skeleton="holster_skeleton" base_set="abdomen_right" holster_position="-0.040, -0.020, -0.270" holster_rotation_yaw_pitch_roll="78.450, 11.550, 96.000"/>
        <item_holster id="javelins" equip_action="act_equip_javelin" equip_action_left_stance="act_equip_javelin_left_stance" unequip_action="act_unequip_javelin" unequip_action_left_stance="act_unequip_javelin_left_stance" show_holster_when_drawn="true" group_name="back_top" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near" holster_position="-0.020, -0.200, -0.090" holster_rotation_yaw_pitch_roll="-2.250, -94.190, -175.910"/>
        <item_holster id="throwing_axe" equip_action="act_equip_throwing_axe" equip_action_left_stance="act_equip_throwing_axe_left_stance" unequip_action="act_unequip_throwing_axe" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="false" group_name="right_hip" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_front" holster_position="0.100, -0.060, -0.200" holster_rotation_yaw_pitch_roll="-72.540, -7.070, -93.210"/>
        <item_holster id="javelins_2" equip_action="act_equip_javelin" equip_action_left_stance="act_equip_javelin_left_stance" unequip_action="act_unequip_javelin" unequip_action_left_stance="act_unequip_javelin_left_stance" show_holster_when_drawn="true" group_name="back_top_2" holster_skeleton="holster_skeleton_back" base_set="thorax_back_near" holster_position="-0.020, -0.200, 0.090" holster_rotation_yaw_pitch_roll="4.360, -90.380, -174.950"/>
        <item_holster id="throwing_axe_2" equip_action="act_equip_throwing_axe" equip_action_left_stance="act_equip_throwing_axe_left_stance" unequip_action="act_unequip_throwing_axe" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="false" group_name="right_hip_2" holster_skeleton="holster_skeleton_hip_right" base_set="abdomen_left" holster_position="0.080, 0.070, -0.200" holster_rotation_yaw_pitch_roll="-61.480, 57.600, -31.250"/>
        <item_holster id="throwing_stone" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_stone" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.020, 0.010, 0.220" holster_rotation_yaw_pitch_roll="-2.630, -83.360, -177.050"/>
        <item_holster id="throwing_stone_2" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_stone_2" holster_skeleton="holster_skeleton_back" base_set="abdomen" holster_position="0.050, -0.090, 0.180" holster_rotation_yaw_pitch_roll="-26.060, -86.360, -172.160"/>
        <item_holster id="throwing_knife" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_knife" holster_skeleton="holster_skeleton_hip_left" base_set="abdomen_left" holster_position="0.030, 0.050, 0.240" holster_rotation_yaw_pitch_roll="-81.900, -176.290, 96.250"/>
        <item_holster id="throwing_knife_2" equip_action="act_equip_stone" equip_action_left_stance="act_equip_stone_left_stance" unequip_action="act_unequip_stone" unequip_action_left_stance="act_unequip_throwing_axe" show_holster_when_drawn="true" group_name="left_hip_knife_2" holster_skeleton="holster_skeleton_back" base_set="abdomen" holster_position="0.050, -0.130, 0.200" holster_rotation_yaw_pitch_roll="-53.960, 103.470, 23.090"/>
    </item_holsters>
</base>
I don't know much about XSLT. When I tried to use it to remove Native equipment roosters from troops, I couldn't get it to work. I had to use an XSLT to remove the whole troop and a related XML to add it back with the revised equipment roosters. It may be that Taleworlds implementation forces you to remove and add an entire item_holster rather than edit it - possibly because they've done something to limit problems re multiple mods editing the same XML. However, I'm just guessing and could be entirely wrong.
 
Upvote 0

strawmann

Recruit
I think I've found the solution for this mod in particular, courtesy of the Magic Holsters mod - a project.mproj file. This is apparent, if cryptically, in the XSLT docs, where the example project.mproj points to action_sets.xml, a file in the Native module.

The broader question - "How to debug XSLT?" - remains open. While imperfect, online XSLT testers are the most useful tool I've found:
 
Upvote 0
Top Bottom