As per documentation By default, this module uses Java’s XSLT 1.0, so if use 2.0 we need to add saxon9he.jar in the classpath

Regards
Dharmendra Kumar singh


On Wednesday, 21 June 2017 3:43 PM, Christian Grün <christian.gruen@gmail.com> wrote:


> so can you please tell me what should i do.

Sure: Read the documentation and find out why xslt:version() returns 1.0. ;)


On Wed, Jun 21, 2017 at 12:09 PM, Dharmendra Singh
<dharam.mahi@gmail.com> wrote:
>  xslt:version() returning 1.0 and my XSLT expression for the 2.0 like
> <xsl:value-of select="if($editmode eq $EDIT-FULL) then 'textarea' else
> 'ouput'"/>
>
> as per xslt 2.0 expression  is right so can you please tell me what should i
> do.
>
>
> Regards
> Dharmendra kumar singh
>
>
> On Wednesday, 21 June 2017 3:20 PM, Christian Grün
> <christian.gruen@gmail.com> wrote:
>
>
> So Saxon is included in your classpath, and xslt:version() returns
> 2.0? In that case, you’ll obviously need to check your XSLT
> expression.
>
>
> On Wed, Jun 21, 2017 at 11:45 AM, Dharmendra Singh
> <dharam.mahi@gmail.com> wrote:
>> Yes the example which has been given for the 2.0 running perfect but when
>> i
>> am adding the line "if($editmode eq $EDIT-FULL) then 'textarea' else
>> 'ouput'
>> in my example it is giving error:
>>
>> [bxerr:BXSL0001] ERROR:  'Syntax error in 'if($editmode eq $EDIT-FULL)
>> then
>> 'textarea' else 'ouput''.'
>> FATAL ERROR:  ': line 1: Required attribute 'select' is missing.'
>>
>> and same code running on my oxygen editor.
>>
>>
>> Regards
>> Dharmendra Kumar Singh
>>
>>
>> On Wednesday, 21 June 2017 2:54 PM, Christian Grün
>> <christian.gruen@gmail.com> wrote:
>>
>>
>> Did you check out the documentation
>> (http://docs.basex.org/wiki/XSLT_Module)?
>>
>>
>> On Wed, Jun 21, 2017 at 11:19 AM, Dharmendra Singh
>> <dharam.mahi@gmail.com> wrote:
>>> Hi all i am trying to run XSLT 2.0 but it is giving the error when i run
>>> xslt 1.0 it fine but i am not able to run XSLT 2.0, is there any way to
>>> run
>>> XSLT 2.0, below is my code.
>>>
>>>
>>>
>>> let $xslt :=
>>>    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>> xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs"
>>> version="2.0">
>>>    <xsl:variable name="editmode" select="dharam"/>
>>>    <xsl:variable name="EDIT-FULL" select="dharam"/>
>>>    <xsl:template match="/">
>>>        <xsl:value-of select="if($editmode eq $EDIT-FULL) then 'textarea'
>>> else 'ouput'"/>
>>>    </xsl:template>
>>> </xsl:stylesheet>
>>>
>>> return
>>>
>>> xslt:transform(<p>1111</p>, $xslt)
>>>
>>>
>>>
>>> Regards
>>> Dharmendra Kumar Singh
>>
>>
>
>