• 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

How to add derived traits to custom output

Lord Inar

Member
I really like the custom HTML ouptut, but the derived traits do not show up.
I tried using the same format to replace the picture (fourth column)...

(td)(ul class="traits")
(xsl:apply-templates select="traits/trait"/)
(/ul)(/td)
(/tr)(/table)

...but it didn't work (nothing new showed up).
I thought derived traits were referred to as traits, so I'm not sure why this doesn't work.

- Marc

Obviously replace all "(" and ")" with "<" and ">" respectively.
 
Last edited:
... I verified the name was the same in the customoutput.dtd file and it looks like it is:

"<"!ELEMENT traits ((trait*))">"
"<"!ELEMENT trait EMPTY">"
"<"!ATTLIST trait
name CDATA #REQUIRED
value CDATA #IMPLIED
">"


Thanks for taking a look at it!

- Marc
 
Umm... the XML on the custom output completely throws me for a loop. I'm not completely sure how to mess with it, but I did do a version of it to try and figure out if I could just output everything I could. What I cam up with can be found at https://www.dropbox.com/s/qog55qn94ooe80v/fullsheet_savage.zip and you might be able to "reverse engineer" it from that to see if you can figure out the right syntax from there.

I gave up messing with the custom output, though, and have since stuck to modifying a new version of the character sheet file directly to try and get everything to output along with the long descriptions which could be useful for working out how to make some of your own sheets using the native HeroLab format. (And which you can get a copy of at https://www.dropbox.com/s/bt5sh2halfy4sik/Sheets.hl if you're interested in that, too.)
 
Back
Top