mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Include one more way to parse buddy on UDDF import
Fixes #377 Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
This commit is contained in:
parent
f14ad7f183
commit
6897c38fec
1 changed files with 3 additions and 3 deletions
|
@ -209,12 +209,12 @@
|
|||
</buddy>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="buddy_ref/@ref|informationbeforedive/buddy_ref/@ref != ''">
|
||||
<xsl:if test="buddy_ref/@ref|informationbeforedive/buddy_ref/@ref|u:informationbeforedive/u:link/@ref != ''">
|
||||
<buddy>
|
||||
<xsl:variable name="ref">
|
||||
<xsl:value-of select="buddy_ref/@ref|informationbeforedive/buddy_ref/@ref"/>
|
||||
<xsl:value-of select="buddy_ref/@ref|informationbeforedive/buddy_ref/@ref|u:informationbeforedive/u:link/@ref"/>
|
||||
</xsl:variable>
|
||||
<xsl:for-each select="//diver[@id=$ref]/personal/first_name|//diver[@id=$ref]/personal/nick_name|//diver[@id=$ref]/personal/family_name|//diver/buddy[@id=$ref]/personal/first_name|//diver/buddy[@id=$ref]/personal/nick_name|//diver/buddy[@id=$ref]/personal/family_name">
|
||||
<xsl:for-each select="//diver[@id=$ref]/personal/first_name|//diver[@id=$ref]/personal/nick_name|//diver[@id=$ref]/personal/family_name|//diver/buddy[@id=$ref]/personal/first_name|//diver/buddy[@id=$ref]/personal/nick_name|//diver/buddy[@id=$ref]/personal/family_name|//u:diver/u:buddy[@id=$ref]/u:personal/u:first_name|//u:diver/u:buddy[@id=$ref]/u:personal/u:nick_name|//u:diver/u:buddy[@id=$ref]/u:personal/u:family_name">
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:if test=". != '' and (following-sibling::*[1] != '' or following-sibling::*[2] != '')"> / </xsl:if>
|
||||
</xsl:for-each>
|
||||
|
|
Loading…
Reference in a new issue