mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Map JDiveLog alarms to Subsurface events
Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									dbafd6cec6
								
							
						
					
					
						commit
						25ddf1caee
					
				
					 1 changed files with 17 additions and 1 deletions
				
			
		|  | @ -160,7 +160,23 @@ Comment: <xsl:value-of select="Comment"/> | |||
|       <!-- events --> | ||||
|       <xsl:for-each select="DIVE/SAMPLES/ALARM"> | ||||
|         <xsl:if test=". != 'SURFACE'"> | ||||
|           <event type="" name="{.}"> | ||||
| 	  <event type=""> | ||||
|             <xsl:attribute name="name"> | ||||
|               <xsl:choose> | ||||
|                 <xsl:when test=". = 'SLOW'"> | ||||
|                   <xsl:value-of select="'ascent'"/> | ||||
|                 </xsl:when> | ||||
|                 <xsl:when test=". = 'ATTENTION'"> | ||||
|                   <xsl:value-of select="'violation'"/> | ||||
|                 </xsl:when> | ||||
|                 <xsl:when test=". = 'DECO'"> | ||||
|                   <xsl:value-of select="'deco'"/> | ||||
|                 </xsl:when> | ||||
|                 <xsl:otherwise> | ||||
|                   <xsl:value-of select="."/> | ||||
|                 </xsl:otherwise> | ||||
|               </xsl:choose> | ||||
| 	    </xsl:attribute> | ||||
|             <xsl:attribute name="time"> | ||||
|               <xsl:call-template name="timeConvert"> | ||||
|                 <xsl:with-param name="timeSec" select="count(preceding-sibling::D) * $delta"/> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue