<xsl:template match="Field[FieldName = 'Original WO' or FieldName = 'Last WO']"> <xsl:choose> <xsl:when test="number(FieldValue) = FieldValue and number(FieldValue) != 0"> <tr> <th>Original WO DWG (if exists)</th> <!-- This is what I'm telling it to display for the field name if it meets the above criteria --> <td><a target="_blank"> <xsl:attribute name="href">file:\\Engineering\Drawings\Const Drawings\<xsl:value-of select="FieldValue"/>.dwg</xsl:attribute> <xsl:value-of select="FieldValue"/> </a> </td> </tr> <tr> <!-- Here is the second entry, just another table row --> <th>As-Built PDF (if exists)</th> <td><a target="_blank"> <xsl:attribute name="href">file:\\Engineering\Drawings\Const Drawings\ASBUILTS\<xsl:value-of select="FieldValue"/>.pdf</xsl:attribute> <xsl:value-of select="FieldValue"/> </a> </td> </tr> </xsl:when> <xsl:otherwise> <!-- If the field name matches, but the field value isn't a number, it displays things like normal. Just one table row, unmodified name & value --> <tr> <th><xsl:value-of select="FieldName"/></th> <!-- This line is an example of how the field name is displayed normally --> <td><xsl:value-of select="FieldValue"/></td> </tr> </xsl:otherwise> </xsl:choose> </xsl:template>
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.