-
November 3rd, 2014, 13:02 #1
Printable - or character WEB page - from FG XML character files.
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/thegol...e-par/player-5
If you find useful, let me know.
Regards
Trevor.Sydney Australia.
GMT + 10
DM 3.5
-
November 3rd, 2014, 13:23 #2
Here is a similar project going on for 5e
https://www.fantasygrounds.com/forum...sheet-from-XML
-
November 3rd, 2014, 14:30 #3
Nice. lot sexier than mine.. but first draft for me . something to aim at now
Gunna be a late night tonightLast edited by trevorgall; November 3rd, 2014 at 14:48.
Sydney Australia.
GMT + 10
DM 3.5
-
November 3rd, 2014, 21:26 #4
Modified Sheet
Updated Sheet. A bit more sedate in terms of colours.
Grab new zip below
TrevorSydney Australia.
GMT + 10
DM 3.5
-
November 4th, 2014, 00:53 #5
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!
-
November 4th, 2014, 14:05 #6
If you want help in figuring out the xml / xlst > html process talk to our OS guys at PCGen.
Paul Grosse
PCGen BoD
PR Silverback
Autobackup Batch file, Always ALWAYS backup your data. Remember to follow the 3-2-1 rule!
-
November 5th, 2014, 22:48 #7
New version that is more print friendly, and bit sexier?
New Version here.
Print friendly from Browser. Attached is a PDF print sample as well.
Rgds
AxisSydney Australia.
GMT + 10
DM 3.5
-
November 6th, 2014, 01:14 #8
-
November 6th, 2014, 20:22 #9
New version - Happy with it now
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/thegol...e-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.
Attachment 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/mo...ll-lurker-tohc
Trev.Last edited by trevorgall; November 6th, 2014 at 20:26.
Sydney Australia.
GMT + 10
DM 3.5
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks