Changeset 0617308 in subsurface


Ignore:
Timestamp:
May 6, 2017, 8:06:42 AM (5 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
59bbaa7
Parents:
b7c6998
git-author:
Miika Turkia <miika.turkia@…> (05/05/17 09:25:33)
git-committer:
Dirk Hohndel <dirk@…> (05/06/17 08:06:42)
Message:

More robust UDDF export test mode

When doing the xslt transformation for UDDF export, the C source does
actually give a parameter units with value 0. Thus we need to treat
that case as normal mode.

Signed-off-by: Miika Turkia <miika.turkia@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • xslt/uddf-export.xslt

    r5f3f641 r0617308  
    200200            <xsl:attribute name="id">
    201201              <xsl:choose>
    202                 <xsl:when test="string-length($units) = 0">
     202                <xsl:when test="string-length($units) = 0 or $units = 0">
    203203                  <xsl:value-of select="generate-id(.)" />
    204204                </xsl:when>
     
    272272      <xsl:attribute name="id">
    273273        <xsl:choose>
    274           <xsl:when test="string-length($units) = 0">
     274          <xsl:when test="string-length($units) = 0 or $units = 0">
    275275            <xsl:value-of select="generate-id(.)" />
    276276          </xsl:when>
Note: See TracChangeset for help on using the changeset viewer.