OpenHab 2 - XSLT Trasformation do not work

Hi,
I’m porting a working XSLT trasformation working on OH 1.8 to OH 2.0.
I have an HTTP binding that retrieve this XML:

<current>
<city id="6542119" name="Novara">
<coord lon="8.62" lat="45.44"/>
<country>IT</country>
<sun rise="2016-10-07T05:32:16" set="2016-10-07T16:53:09"/>
</city>
<temperature value="15.26" min="15.26" max="15.26" unit="metric"/>
<humidity value="76" unit="%"/>
<pressure value="980.6" unit="hPa"/>
<wind>
<speed value="1.82" name="Light breeze"/>
<gusts/>
<direction value="199.001" code="SSW" name="South-southwest"/>
</wind>
<clouds value="0" name="clear sky"/>
<visibility/>
<precipitation mode="no"/>
<weather number="800" value="cielo sereno" icon="01d"/>
<lastupdate value="2016-10-07T11:32:59"/>
</current>

and I have this trasformation file:

<?xml version="1.0"?>
<xsl:stylesheet 
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

        <xsl:output indent="yes" method="text" encoding="UTF-8" omit-xml-declaration="yes" />

        <xsl:template match="/">
				<xsl:value-of select='format-number(//temperature/@value,"0.0")' />
        </xsl:template>

</xsl:stylesheet>

I have enabled XSLT Trasformation on PaperUI.

Any help would be appreciated.

Marco

I don’t see anything obviously wrong. I’m doing something very similar with Wunderground and it works except when I first start OH. I get a bunch of “Can’t find XSLT transform service” errors and the first XML I get fails to parse. But each subsequent refresh works just fine.

Hi,
you are right, after 1st refresh it works fine. I had a long refresh on this items (1 hour), so I never get it updated during test.
Reducing the refresh interval, I get them working.

Many Thanks

Marco