Hi Mikko,
The report XSL themselves can be edited to provide stations/units to whatever you want. This may be the best option for what you need currently.
Regards,
Mark
OpenRoads Designer 2023 | Microstation 2023.1 | ProjectWise 2023
Yes. Currently the only available solution.
Thanks to Paul, my colleague, who provided few examples:
eg if the station is 10,000.000 then
<xsl:value-of select="format-number(number(Start/station/@externalStation),'##+###.000')"/>
will output 10+000.000
or
<xsl:value-of select="format-number(number(Start/station/@externalStation),'##km ###.000')"/>
will output 10km 000.000
<xsl:value-of select="format-number(number(Start/station/@externalStation),'#.000')"/>
will output 10000.000
Thanks Mark and jpln !
I am not familiar with editing XSL and as I tried to put the above examples to the code, I couldn't get right results. As default, my code looks like this:
<xsl:value-of select="cif:stationFormat(number(GeometryPoint/station/@externalStation), string(GeometryPoint/station/@externalStationName))"/>
I tried to put the "'##+###.000'" several different ways, but didn't have success. Below example:
<xsl:value-of select="cif:stationFormat(number(GeometryPoint/station/@externalStation),'##+###.000')"/>
What I am doing wrong here? It seems that xsl doesn't recognize hash symbol as a reference for the corresponding station values.
Is there any "XSL for dummies" -guide specifically for OpenRoads/-Rail users?
Br,Mikko
You are very close. Instead of:
change to:
<xsl:value-of select='format-number(number(GeometryPoint/station/@externalStation), "##+###.000")'/>
Thanks again, but still not showing right:Br,Mikko
Just some misplaced symbols - updated previous post
More info on the format-number() function here: XSLT format-number() Function (w3schools.com) - This site is really good to learn generic XSLT