我有以下 XSL 代码
<xsl:value-of select="arinc:FlightPlan/arinc:Waypoints/arinc:Waypoint/concat(@waypointName, ',',arinc:Altitude/arinc:EstimatedAltitude/arinc:Value, ',', format-number(hours-from-duration(arinc:CumulatedFlightTime/arinc:EstimatedTime/arinc:Value), '00'), '.',format-number(minutes-from-duration(arinc:CumulatedFlightTime/arinc:EstimatedTime/arinc:Value), '00'),'...')"/>
结果应固定长度设置为 3500 个字符。请问有什么想法吗?样本输入:
</Waypoint>
<Waypoint countryICAOCode="EG" sequenceId="6" waypointId="ADMAG" waypointLongName="ADMAG" waypointName="ADMAG">
<Coordinates latitude="+184442" longitude="+1774">N5114.0 E00029.6</Coordinates>
<Airway type="RNAV_SID">ADMAG1X</Airway>
<Altitude>
<EstimatedAltitude>
<Value unit="ft/100">111</Value>
</EstimatedAltitude>
</Altitude>
<CumulatedFlightTime>
<EstimatedTime>
<Value>PT0H9M51S</Value>
</EstimatedTime>
请求的输出可以包含多个Waypoint
s,最多 3500 个字符。还有一些字段需要填充到固定长度。举个例子。