Strange xsl:variable problem
Posted: Tue Jan 16, 2007 4:36 pm
I have a piece of pretty standard xslt that is causing me problems.
When I debug this code, I can see in the debugger that the line-rate variable has been set correctly, while the dave variable exists but it not set. The lines come directly after each other in the stylesheet. How can it be that one functions correctly and the other not, when the xpath expression is the exact same?
The code is stylesheet is defined as xslt 2.0, and I'm using saxon 8, and my jre is 6.0
It may or may not be related but just today Oxygen started throwing an error on load
However, it continues to load fine. Can anyone help me?
Code: Select all
<xsl:variable name="line-rate" select="round-half-to-even(@line-rate * 100, 2)"/>
<xsl:variable name="dave" select="round-half-to-even(@line-rate * 100, 2)"/>
The code is stylesheet is defined as xslt 2.0, and I'm using saxon 8, and my jre is 6.0
It may or may not be related but just today Oxygen started throwing an error on load
Code: Select all
[ AWT-EventQueue-0 ] - java.lang.NullPointerException
java.lang.NullPointerException
at ro.sync.ui.application.ApplicationDialog.ʗ(Unknown Source)
at ro.sync.ui.application.ApplicationDialog.setVisible(Unknown Source)
at ro.sync.I.K.ل(Unknown Source)
at ro.sync.I.K$3.run(Unknown Source)
at ro.sync.ui.H$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)