• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Custom Output, need some specific tags

murkatos

New member
Working on a custom output file - can't figure out languages or senses, as they show up in the statblock export. I have tried many permutations of:

Code:
<xsl:apply-templates select="languages/@language"/>
<xsl:apply-templates select="senses"/>

Additionally, is there any way to shorten the text containers for statistics and saves? Right now using:

Code:
  <xsl:template match="save">
   <strong><xsl:value-of select="@name"/>:</strong><xsl:value-of select="@save"/>
    </xsl:template>
and
 <xsl:template match="attribute">
    <strong><xsl:value-of select="@name"/></strong>: <xsl:value-of select="attrvalue/@text"/>(<xsl:value-of select="attrbonus/@text"/>),
    </xsl:template>

These output fill text "Strength" instead of Str, and "Fortitude Save" instead of Fort. Anyone have any pointers, or tackled this before?
 
These output fill text "Strength" instead of Str, and "Fortitude Save" instead of Fort. Anyone have any pointers, or tackled this before?
I have not looked in a long time but I thought I remember a "shortname" element that you could use instead of "name". I am not sure if those are filled in with the values you want or not without looking at the XML.

You can do that by having HL generate custom output and taking the bottom most option "Generic XML" or something like that is called.
 
If you have the patience to wade through a lot of JavaScript code, you can look at the way I did it. I moved away from XSL for the most part, though... it was too cumbersome for a lot of things.
 
Back
Top