What this section is for ?
If you wonder what is XSLT and want an overview of XGenealogy, you are at the right place.XSLT, What is that ?
XSLT, the Extensible Stylesheet Language for Transformations, is an official recommendation of the World Wide Web Consortium (W3C). It provides a flexible, powerful language for transforming XML documents into something else. That something else can be an HTML document, another XML document, a Portable Document Format (PDF) file, a Scalable Vector Graphics (SVG) file, a Virtual Reality Modeling Language (VRML) file, Java code, a flat text file, a JPEG file, or most anything you want. You write an XSLT stylesheet to define the rules for transforming an XML document, and the XSLT processor does the work- From "XSLT" book, Doug Tidwell, O'Reilly
XGenealogy uses an XSLT processor (SAXON) to transform GEDCOM 6.0
At the moment, XGenealogy comes with stylesheet to transform GEDCOM 6.0 into pdf, doc, txt, rtf, svg (also a W3C recommendation), html and xhtml.
No magic here, XSLT stylesheet defines what the output file will be.
Import GEDCOM 5.5 in XGenealogy
The importing process converts GEDCOM 5.5 into an XML document then with an XSLT Stylesheet, the XML document is tranformed into GEDCOM 6.0
XSLT and XGenealogy - A complete View
General Description
XGenealogy is GUI (Graphical User Interface) implemented using Java.There is the usual File menu. Thanks to this menu you can Import/Export GEDCOM 5.5
After, you have opened a GEDCOM 6.0 or import a GEDCOM 5.5, you can produce output by applying XSLT Stylesheet or update your genealogy data.
How to transform your GEDCOM 6.0 with XGenealogy ?
Follow those steps:- 1) Ouput menu --> Apply XSLT
- 2) File Chooser Dialog box appears to select the stylesheet, which will be used for transforming GEDCOM 6.0. Select stylesheet, then click OK
- 3) File Chooser Dialog box appears to select where you want to save the output. Select folder. Give a name file with the right extension file, then click OK
- 4) If everything goes well a Dialog Box will confirm the tranformation. Otherwise you get an error message
At step 3, XGenealogy checks that the extension of the output file is one of those .xml, .pdf, .doc, .txt, .rtf, .svg, .html and xhtml. It also checks that the extension file is correct with the chosen stylesheet. It means that if you have chosen a stylesheet to produce html, the extension of the output file will be html
If you failed to respect those conditions you get an error message.