From: Alex R. <sh...@al...> - 2003-06-08 15:27:08
|
On Fri, Jun 06, 2003 at 11:41:09PM +0100, Tim Waugh wrote: > One of the RFEs for GRAMPS on sourceforge.net is a set of XSL > stylesheets for generating reports. > > I've been having a play about with this, and attached is what I've > come up with for a report I wanted to generate. Use it like this (for > xsltproc): > > xsltproc ancestors.xsl <(zcat data.gramps) > report.xml > > Mozilla can view the output. It's not proper XHTML or anything yet. > > Is this a possible future direction for GRAMPS reports? Just wanted to note that changing the ID in the following line from I25 to I37 shows more generations and nice images/frames (apparently, I25 in the example database does not have a lot of ancestors :-) - <xsl:variable name="ancestors-of" select="'I25'"/> + <xsl:variable name="ancestors-of" select="'I37'"/> I like this approach very much. A practical question: how does one go about translating <xsl:text> entries into other languages? Do we need to have a separate version of the .xsl file for each language? Or is there any way to translate string at xsltproc run-time? Alex -- Alexander Roitman http://ebner.neuroscience.umn.edu/people/alex.html Dept. of Neuroscience, Lions Research Building 2001 6th Street SE, Minneapolis, MN 55455 Tel (612) 625-7566 FAX (612) 626-9201 |