16,719
edits
Changes
From Gramps
Xsl
,→Examples
then you will be able to display media objects on a HTML file. You may use all HTML codes or .css file for having what you want.
* With XML, you will be able to make SVG. To generate a basic ancestors geographical map area with gramps coordinates .For France area (dirty and quick test) : <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/Graphics/SVG/SVG-19990812.dtd" xmlns:gr="http://gramps-project.org/xml/1.1.4/" exclude-result-prefixes="gr"> <xsl:output method="xml" indent="yes" media-type="image/svg"/> <xsl:template match="/"> <svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.0" width="2000px" height="1000px" id="svg2"> <g> <xsl:for-each select="gr:database/gr:places/gr:placeobj"> <xsl:variable name="long" select="gr:coord/@long"/> <xsl:variable name="lat" select="gr:coord/@lat"/> <xsl:variable name="title" select="@title"/> <rect x="{($long)*300}" y="{(1000-$lat*20)*20}" width="5px" height="5px"/> <text x="{($long)*300}" y="{(1000-$lat*20)*20}" font-size="8px"><xsl:value-of select="gr:ptitle"/></text> </xsl:for-each> </g> </svg> </xsl:template> </xsl:stylesheet> # [[Generate_XML#How_do_I_uncompress_the_file.3F|gunzip a copy of your data.gramps]].# try: xsltproc --novalid xxx.xsl data.gramps > map.svgYou will get a layer according to specified dimensions on XSLT stylesheet.