PDA

View Full Version : Printable - or character WEB page - from FG XML character files.



trevorgall
November 3rd, 2014, 13:02
Hey

I wanted to use my FG XML character files, and display on my google site. Also have seen some people asking about printing a char sheet from FG XML file.

Spent a few hours on Sunday creating this XSLT file.

Maybe someone has done aready, but enjoy if you haven't.

THIS IS FOR A PATHFINDER SHEET. HAVE NOT TRIED FOR OTHER PLATFORMS.

Just take the XML file from the characters folder (copy it) and add after first line..


<?xml-stylesheet href="char.xslt" type="text/xsl" ?>

Download the attached zip file and extract char.xslt , put in same folder as your chars.

Then open the copied/editted XML file in browser and VOILA!

If you want the html output on your web site, I could not work out how to do with the XML and XSLT on the site. So just view source in your browser, copy and paste to your web page source.

eg see example from my Google site below.

This is a first draft of the xslt. Will clean up. Colours are a bit wonky.

if you print the web page of course, you then have a printed char sheet.

See attached...and web link below..

https://sites.google.com/site/thegolemslair/the-par/player-5


If you find useful, let me know.

Regards
Trevor.

damned
November 3rd, 2014, 13:23
Here is a similar project going on for 5e :)
https://www.fantasygrounds.com/forums/showthread.php?22440-5E-Character-sheet-from-XML

trevorgall
November 3rd, 2014, 14:30
Nice. lot sexier than mine.. but first draft for me :). something to aim at now :)
Gunna be a late night tonight :)

trevorgall
November 3rd, 2014, 21:26
Updated Sheet. A bit more sedate in terms of colours.

Grab new zip below

Trevor

damned
November 4th, 2014, 00:53
Well done - keep up the great work.
As an option to consider - you might want a layout that is print friendly - of course that is if print is of use to you!

Nylanfs
November 4th, 2014, 14:05
If you want help in figuring out the xml / xlst > html process talk to our OS guys at PCGen (https://groups.pcgen.org/viewforum.php?f=21).

trevorgall
November 5th, 2014, 22:48
New Version here.
Print friendly from Browser. Attached is a PDF print sample as well.
Rgds
Axis

damned
November 6th, 2014, 01:14
Great stuff trevorgall!

trevorgall
November 6th, 2014, 20:22
Latest version.
The background image links to a URL, rather than a local image. You can just change the ref, to have a diff parchment if you wish.
All Centered.
Better Colours I think.
Print Friendly

Again if you did not see earlier post,
1. export char from FG
2. add on second line..
<?xml-stylesheet href="char.xslt" type="text/xsl" ?>
3. make sure the char.xslt is in same folder.
4. Then simply open the XML in your browser.
5. Print if you wish

Its now google Sites Friendly (web page ) - example below

https://sites.google.com/site/thegolemslair/the-par/player-2

If you want to put on a google site.. the trick I found, was to make a page and INSERT a 'HTML box' widget on the page.

7879

Then view source on the character web view of the XML.
Copy the source and paste on your web page.

Enjoy..

Now to think up some nasty encounters for my Sat night group..

One of these in a 'desert' might be good... :)

https://www.d20pfsrd.com/bestiary/monster-listings/aberrations/well-lurker-tohc


Trev.