Hi,
did you check http://docs.basex.org/wiki/XSLT_Module ?
using xslt:processor() you can output if you're really using Saxon.
Regards, Max
2012/9/13 Alex Muir alex.g.muir@gmail.com:
Hi,
Following the http://docs.basex.org/wiki/XSLT_Module
I'm launching basex as follows
java -classpath /mnt/xslt_volume/i4EnrichV7/resources/libs/saxon9he.jar -jar /mnt/xslt_volume/i4EnrichV7/resources/libs/BaseX73.jar
I get an error thought when executing which makes me think I have not convinced basex that saxon is there to use...
Error: Stopped at line 14, column 48 in /mnt/xslt_volume/i4EnrichV7/analysis/xquery/AggregateSectionsTitleNormalized.xq: [XPST0017] Unknown function 'current-grouping-key(...)'.
Query: let $in := .//section let $sections :=
<sections> $in </sections> let $style := <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:mh="http://www.metaheuristica.com" version="2.0"> <xsl:output method="xml" indent="no"/>
<xsl:template match="sections"> <groups> <xsl:for-each-group select="section" group-by="@titleNormalized"> <group name="{current-grouping-key()}" count="{count(current-group())}"/> </xsl:for-each-group> </groups> </xsl:template>
</xsl:stylesheet>
return xslt:transform($sections, $style)
What am I doing wrong? Regards
--
Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 _______________________________________________ BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk