View Single Post
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 31st, 2017, 01:32 PM
Quote:
Originally Posted by dpmcalister View Post
Thanks. That's helped a lot. I've also tracked down the customoutput.dtd (it's not in the folder that the Help file says it is). Worked out the Saving Throw issue but trying to work out Speed now. The generic xml says:

<movement>
<speed text="30'" value="30"/>
<basespeed text="30'" value="30"/>
</movement>

but I can't work out how to convert that into xsl. I've tried all sorts of variants (like <xsl:value-of select="speed/@text"/>) but no joy so far.

I'm teaching myself XSL/XML for this project though so it's a bit of a learning curve

Thanks again, much appreciated.
Its been awhile sense I have done much with XSL but it could be an xpath issue.

try:
Code:
<xsl:value-of select="movement/speed/@text"/>

Hero Lab Resources:
Pathfinder - d20pfsrd and Pathfinder Pack Setup
3.5 D&D (d20) - Community Server Setup
5E D&D - Community Server Setup
Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources.
Created by the community for the community
- Realm Works kickstarter backer (Alpha Wolf) and Beta tester.
- d20 HL package volunteer editor.
ShadowChemosh is offline   #14 Reply With Quote