R
RolfK
Dear Experts,
I have a behaviour I can not understand. May be I even not understand
the typing in a variable declaration correctly.
Please have a look to the following code snipets which behave
differently for ALTOVA and SAXON 9. The key funktion is not important
here.
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
xs:float(@Temperature)" as="xs:float"/>
(The as="xs:float" may be superflous here)
My first attempt was
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
@Temperature" as="xs:float"/>
This runs perfectly with SAXON 9 but lead to an error message
complaining the type when the variable is used later in case of
ALTOVA.
So, what is the right coding style , or what is the difference ?
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
xs:float(@Temperature)" />
or
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
@Temperature" as="xs:float"/>
Any hint is welcome
Rolf
I have a behaviour I can not understand. May be I even not understand
the typing in a variable declaration correctly.
Please have a look to the following code snipets which behave
differently for ALTOVA and SAXON 9. The key funktion is not important
here.
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
xs:float(@Temperature)" as="xs:float"/>
(The as="xs:float" may be superflous here)
My first attempt was
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
@Temperature" as="xs:float"/>
This runs perfectly with SAXON 9 but lead to an error message
complaining the type when the variable is used later in case of
ALTOVA.
So, what is the right coding style , or what is the difference ?
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
xs:float(@Temperature)" />
or
<xsl:variable name="vReferenceTemp" select="key('kShell','Generic')/
@Temperature" as="xs:float"/>
Any hint is welcome
Rolf