mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	AV1 import: move dcmode detection
We need to set the attributes before we can start parsing other tags, as cylinder. Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
		
							parent
							
								
									49964a552b
								
							
						
					
					
						commit
						f28280db99
					
				
					 1 changed files with 6 additions and 5 deletions
				
			
		|  | @ -28,6 +28,12 @@ | ||||||
|               <xsl:value-of select="$hw" /> |               <xsl:value-of select="$hw" /> | ||||||
|             </xsl:attribute> |             </xsl:attribute> | ||||||
| 
 | 
 | ||||||
|  |             <xsl:if test="substring-before(//AV1, 'DiveMode=') != ''"> | ||||||
|  |               <xsl:attribute name="dctype"> | ||||||
|  |                 <xsl:value-of select="substring-before(substring-after(//AV1, 'DiveMode= '), ' ')"/> | ||||||
|  |               </xsl:attribute> | ||||||
|  |             </xsl:if> | ||||||
|  | 
 | ||||||
|             <xsl:call-template name="printLine"> |             <xsl:call-template name="printLine"> | ||||||
|               <xsl:with-param name="line" select="substring-before(//AV1, $lf)"/> |               <xsl:with-param name="line" select="substring-before(//AV1, $lf)"/> | ||||||
|               <xsl:with-param name="lineno" select="'1'"/> |               <xsl:with-param name="lineno" select="'1'"/> | ||||||
|  | @ -61,11 +67,6 @@ | ||||||
|       </xsl:when> |       </xsl:when> | ||||||
|       <xsl:otherwise> |       <xsl:otherwise> | ||||||
|         <xsl:choose> |         <xsl:choose> | ||||||
|           <xsl:when test="substring-before($line, '=') = 'DiveMode'"> |  | ||||||
|             <xsl:attribute name="dctype"> |  | ||||||
|               <xsl:value-of select="substring-before(substring-after($line, '= '), ' ')"/> |  | ||||||
|             </xsl:attribute> |  | ||||||
|           </xsl:when> |  | ||||||
|           <xsl:when test="substring-before($line, '=') = 'Alert'"> |           <xsl:when test="substring-before($line, '=') = 'Alert'"> | ||||||
|             <event> |             <event> | ||||||
|               <xsl:attribute name="time"> |               <xsl:attribute name="time"> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue