搜索结果: *

  1. BL Coding Making use of XSLT to add an attribute

    Hello again. I can now proudly say that after many trial and errors, I've found the solution myself! In my eyes as a newbie modder, I think it could be valuable to know, so I'll post it here as documentation for anyone else having the same question.
    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='Settlement[@id="castle_village_S3_1"]'>
            <xsl:copy>
                <xsl:apply-templates select="@*"/>
                <xsl:attribute name="text">NEW DESCRIPTION</xsl:attribute>
                <xsl:apply-templates select="node()"/>
            </xsl:copy>
        </xsl:template>
    
    </xsl:stylesheet>
  2. BL Coding Making use of XSLT to add an attribute

    Hello! I'm a newbie modder making use of XSLT to modify some files, more specifically the description of some towns and villages. The following lines are an example of how I successfully replaced a description of a village. <xsl:stylesheet version="1.0"...
  3. BL Coding Replacing /Languages strings with XSLT

    I don't know much about string modding, but your problems may result from the way Taleworlds have set up their translation system. You might find the answer in this translation tutorial https://forums.taleworlds.com/index...ation-tutorial-and-translate-m-b-tool.453464/
    Thank you, I will definitely give this a try!
  4. BL Coding Replacing /Languages strings with XSLT

    Hello! I've successfully been able to replace strings in the SandBox/module_strings.xml file by using XSLT in my mod. But when I try doing the same thing for files located in SandBox/Languages/std_TaleWorlds_CampaignSystem (or some other file in that subfolder) it doesn't work. In regards to the...
后退
顶部 底部