PDA

View Full Version : db.xml -> d20_jpg.xml



diehard
September 24th, 2009, 20:50
Hi, :)
This is a method to extract pg statistic from db.xml file campaign
using XSLT Transformation

it's work for d20_jpg ruleset

but i think it's possible to work for all ruleset (maybe with little work ;) )


Download:
- Download and install jedit https://www.jedit.org/index.php?page=download
- Download file db_to_d20_jpg.zip (attachment)

Installation:
- In jedit ... menu Plugins-> Plugin Manager -> Install
(wait for downloading plugins) and choose XSLT and all plugins related
- Click to Install

If all went as planned under the menu item Plugins
2 entries appear XML and XSLT

to perform the transformation of db.xml to d20_jpg.xml
perform the following steps

- Create a directory called c:\db_to_d20_jpg
- copy the files db_to_d20_jpg.xsl (zip file) and db.xml Campaign into the new directory

Elaboration:
- Click under the menu plugins-> XSLT -> XSLT Processor (Toggle)
- Will open a popup XSLT Processor
- Choose the file option in source XML file c:\db_to_d20_jpg\db.xml
- Part stylesheets click the "+" and find the c:\db_to_d20_jpg\db_to_d20_jpg.xsl
- Create an empty file c:\db_to_d20_jpg\d20_jpg.xml
- Write in the Result: "c:\db_to_d20_jpg\d20_jpg.xml"
- Click on the button with the symbol "XML + XSL ="

After the elaboration the result is a file d20_jpg.xml complies with the local XML format characters d20_jpg

copy the file c:\db_to_d20_jpg\d20_jpg.xml under the directory <Fantasy Grounds II Application>\characters and u can see the current pg of campaign

Bye :D

Bidmaron
October 2nd, 2009, 12:12
Stupid question: what is the pg statistic?

EugeneZ
October 3rd, 2009, 09:21
Looking at the source code, it looks like it copies all the <charsheet> nodes, adds a portrait node inside each one, removes all the holder nodes, and outputs the copy with those modifications. Considering he asks to copy the result to /characters, it appears it allows one to export campaign PCs to local characters for local viewing. My guess.