using xslt 2 --- Unknown function 'current-grouping-key(...)'.

Thursday, 13 September 2012 · 11 messages
MG
Maximilian Gärberin reply to Alex Muir, 13 Sep 2012, 16:1513 Sep 2012 14:57 #
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 at gmail.com>:
Quoted text · Alex Muir · 55 lines
> 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- Maximilian Gärber axxepta solutions GmbH Postfach 51 02 38 13362 Berlin Tel +49 (0)30 499 147 66 Fax +49 (0)30 499 147 67 Mail gaerber at axxepta.de
CG
Christian Grünin reply to Alex Muir, 13 Sep 2012, 17:4713 Sep 2012 15:51 #
Dear Alex, as Max stated, it would be interesting to know what xslt:processor() gives you as result. This way, we will know if Saxon or Java is used as processor. Thanks, Christian
Quoted text · Alex Muir · 113 lines
On Thu, Sep 13, 2012 at 3:47 PM, Alex Muir <alex.g.muir at gmail.com> wrote: > As I said in the first line of my post I'm looking at that module > page. The page states that > > "XSLT 2.0 is used instead if Version 9.x of the Saxon XSLT Processor > (saxon9he.jar, saxon9pe.jar, saxon9ee.jar) is found in the classpath." > > 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 > > Is there anything else I need to do? > > > On Thu, Sep 13, 2012 at 8:57 AM, Maximilian Gärber <gaerber at axxepta.de> wrote: >> 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 at 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 at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> -- >> >> Maximilian Gärber >> >> axxepta solutions GmbH >> Postfach 51 02 38 >> 13362 Berlin >> >> Tel +49 (0)30 499 147 66 >> Fax +49 (0)30 499 147 67 >> Mail gaerber at axxepta.de >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > -- > - > > Alex G. Muir > Software Engineering Consultant > Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CG
Christian Grünin reply to Alex Muir, 13 Sep 2012, 17:5413 Sep 2012 15:57 #
Thanks. What happens if you specify BaseX73.jar in the classpath?
 java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI
Quoted text · Alex Muir · 137 lines
On Thu, Sep 13, 2012 at 3:53 PM, Alex Muir <alex.g.muir at gmail.com> wrote: > Java is being used > > On Thu, Sep 13, 2012 at 9:51 AM, Christian Grün > <christian.gruen at gmail.com> wrote: >> Dear Alex, >> >> as Max stated, it would be interesting to know what xslt:processor() >> gives you as result. This way, we will know if Saxon or Java is used >> as processor. >> >> Thanks, >> Christian >> ___________________________ >> >> On Thu, Sep 13, 2012 at 3:47 PM, Alex Muir <alex.g.muir at gmail.com> wrote: >>> As I said in the first line of my post I'm looking at that module >>> page. The page states that >>> >>> "XSLT 2.0 is used instead if Version 9.x of the Saxon XSLT Processor >>> (saxon9he.jar, saxon9pe.jar, saxon9ee.jar) is found in the classpath." >>> >>> 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 >>> >>> Is there anything else I need to do? >>> >>> >>> On Thu, Sep 13, 2012 at 8:57 AM, Maximilian Gärber <gaerber at axxepta.de> wrote: >>>> 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 at 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 at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >>>> -- >>>> >>>> Maximilian Gärber >>>> >>>> axxepta solutions GmbH >>>> Postfach 51 02 38 >>>> 13362 Berlin >>>> >>>> Tel +49 (0)30 499 147 66 >>>> Fax +49 (0)30 499 147 67 >>>> Mail gaerber at axxepta.de >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >>> -- >>> - >>> >>> Alex G. Muir >>> Software Engineering Consultant >>> Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > -- > - > > Alex G. Muir > Software Engineering Consultant > Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
IL
Imsieke, Gerrit, le-texin reply to Alex Muir, 13 Sep 2012, 17:5413 Sep 2012 15:58 #
Aren’t the -jar and -cp options mututally exclusive? That is, if you use -jar, -cp is being ignored? Maybe you should put all jars (BaseX, Saxon, ...) in the -cp and then invoke org.basex.BaseXGUI or the like. Maybe adapt the startup scripts to include the Saxon jar in the cp. Gerrit
Quoted text · Alex Muir · 131 lines
On 2012-09-13 15:53, Alex Muir wrote: > Java is being used > > On Thu, Sep 13, 2012 at 9:51 AM, Christian Grün > <christian.gruen at gmail.com> wrote: >> Dear Alex, >> >> as Max stated, it would be interesting to know what xslt:processor() >> gives you as result. This way, we will know if Saxon or Java is used >> as processor. >> >> Thanks, >> Christian >> ___________________________ >> >> On Thu, Sep 13, 2012 at 3:47 PM, Alex Muir <alex.g.muir at gmail.com> wrote: >>> As I said in the first line of my post I'm looking at that module >>> page. The page states that >>> >>> "XSLT 2.0 is used instead if Version 9.x of the Saxon XSLT Processor >>> (saxon9he.jar, saxon9pe.jar, saxon9ee.jar) is found in the classpath." >>> >>> 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 >>> >>> Is there anything else I need to do? >>> >>> >>> On Thu, Sep 13, 2012 at 8:57 AM, Maximilian Gärber <gaerber at axxepta.de> wrote: >>>> 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 at 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 at mailman.uni-konstanz.de >>>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>>> >>>> >>>> >>>> -- >>>> >>>> Maximilian Gärber >>>> >>>> axxepta solutions GmbH >>>> Postfach 51 02 38 >>>> 13362 Berlin >>>> >>>> Tel +49 (0)30 499 147 66 >>>> Fax +49 (0)30 499 147 67 >>>> Mail gaerber at axxepta.de >>>> _______________________________________________ >>>> BaseX-Talk mailing list >>>> BaseX-Talk at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >>> -- >>> - >>> >>> Alex G. Muir >>> Software Engineering Consultant >>> Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > >
-- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke at le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vöckler
IL
Imsieke, Gerrit, le-texin reply to Alex Muir, 13 Sep 2012, 18:0613 Sep 2012 16:08 #
Use a colon as path separator when in Unixland
Quoted text · Alex Muir · 17 lines
On 2012-09-13 16:06, Alex Muir wrote: > I'm trying that but getting command not found > > [ec2-user@soda libs]$ ls > BaseX73.jar saxon9he.jar > > [ec2-user@soda libs]$ java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI > ... > bash: BaseX73.jar: command not found... > > > On Thu, Sep 13, 2012 at 9:57 AM, Christian Grün > <christian.gruen at gmail.com> wrote: >> java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI > > >
-- Gerrit Imsieke Geschäftsführer / Managing Director le-tex publishing services GmbH Weissenfelser Str. 84, 04229 Leipzig, Germany Phone +49 341 355356 110, Fax +49 341 355356 510 gerrit.imsieke at le-tex.de, http://www.le-tex.de Registergericht / Commercial Register: Amtsgericht Leipzig Registernummer / Registration Number: HRB 24930 Geschäftsführer: Gerrit Imsieke, Svea Jelonek, Thomas Schmidt, Dr. Reinhard Vöckler
AM
Alex Muir13 Sep 2012 16:15 #
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
AM
Alex Muirin reply to Maximilian Gärber, 13 Sep 2012, 14:5713 Sep 2012 17:47 #
As I said in the first line of my post I'm looking at that module page. The page states that "XSLT 2.0 is used instead if Version 9.x of the Saxon XSLT Processor (saxon9he.jar, saxon9pe.jar, saxon9ee.jar) is found in the classpath." 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 Is there anything else I need to do?
Quoted text · Maximilian Gärber · 84 lines
On Thu, Sep 13, 2012 at 8:57 AM, Maximilian Gärber <gaerber at axxepta.de> wrote: > 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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk > > > > -- > > Maximilian Gärber > > axxepta solutions GmbH > Postfach 51 02 38 > 13362 Berlin > > Tel +49 (0)30 499 147 66 > Fax +49 (0)30 499 147 67 > Mail gaerber at axxepta.de > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
AM
Alex Muirin reply to Christian Grün, 13 Sep 2012, 15:5113 Sep 2012 17:54 #
Java is being used
Quoted text · Christian Grün · 125 lines
On Thu, Sep 13, 2012 at 9:51 AM, Christian Grün <christian.gruen at gmail.com> wrote: > Dear Alex, > > as Max stated, it would be interesting to know what xslt:processor() > gives you as result. This way, we will know if Saxon or Java is used > as processor. > > Thanks, > Christian > ___________________________ > > On Thu, Sep 13, 2012 at 3:47 PM, Alex Muir <alex.g.muir at gmail.com> wrote: >> As I said in the first line of my post I'm looking at that module >> page. The page states that >> >> "XSLT 2.0 is used instead if Version 9.x of the Saxon XSLT Processor >> (saxon9he.jar, saxon9pe.jar, saxon9ee.jar) is found in the classpath." >> >> 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 >> >> Is there anything else I need to do? >> >> >> On Thu, Sep 13, 2012 at 8:57 AM, Maximilian Gärber <gaerber at axxepta.de> wrote: >>> 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 at 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 at mailman.uni-konstanz.de >>>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >>> >>> >>> >>> -- >>> >>> Maximilian Gärber >>> >>> axxepta solutions GmbH >>> Postfach 51 02 38 >>> 13362 Berlin >>> >>> Tel +49 (0)30 499 147 66 >>> Fax +49 (0)30 499 147 67 >>> Mail gaerber at axxepta.de >>> _______________________________________________ >>> BaseX-Talk mailing list >>> BaseX-Talk at mailman.uni-konstanz.de >>> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> -- >> - >> >> Alex G. Muir >> Software Engineering Consultant >> Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125 >> _______________________________________________ >> BaseX-Talk mailing list >> BaseX-Talk at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
AM
Alex Muirin reply to Christian Grün, 13 Sep 2012, 15:5713 Sep 2012 18:06 #
I'm trying that but getting command not found [ec2-user@soda libs]$ ls BaseX73.jar saxon9he.jar [ec2-user@soda libs]$ java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI ... bash: BaseX73.jar: command not found...
Quoted text · Christian Grün · 3 lines
On Thu, Sep 13, 2012 at 9:57 AM, Christian Grün <christian.gruen at gmail.com> wrote: > java -cp saxon9he.jar;BaseX73.jar org.basex.BaseXGUI
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
AM
Alex Muirin reply to Imsieke, Gerrit, le-tex, 13 Sep 2012, 16:0813 Sep 2012 18:16 #
Right, thanks Okay it now returns that it is using Saxon HE as the xslt processor however I still get the error Unknown function 'current-grouping-key(...)'.
Quoted text · le-tex · 3 lines
On Thu, Sep 13, 2012 at 10:08 AM, Imsieke, Gerrit, le-tex <gerrit.imsieke at le-tex.de> wrote: > Use a colon as path separator when in Unixland
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
AM
Alex Muir13 Sep 2012 18:22 #
I think taking the xslt out of a variable and into an external file solves that error message, although things aren't currently working as expected.. I'll keep debugging return xslt:transform($sections, '/mnt/xslt_volume/i4EnrichV7/analysis/xslt/AggregateAndCountSubsectionTitles.xsl') Thanks for all the help Cheers
Quoted text · Alex Muir · 22 lines
On Thu, Sep 13, 2012 at 10:16 AM, Alex Muir <alex.g.muir at gmail.com> wrote: > Right, thanks > > Okay it now returns that it is using Saxon HE as the xslt processor > > however I still get the error > > Unknown function 'current-grouping-key(...)'. > > > On Thu, Sep 13, 2012 at 10:08 AM, Imsieke, Gerrit, le-tex > <gerrit.imsieke at le-tex.de> wrote: >> Use a colon as path separator when in Unixland > > > > -- > - > > Alex G. Muir > Software Engineering Consultant > Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125
-- - Alex G. Muir Software Engineering Consultant Linkedin Profile : http://ca.linkedin.com/pub/alex-muir/36/ab7/125

⚡Generated with XQuery