Project

Profile

Help

Bug #1600 » style.xsl

Michael Kay, 2012-08-03 14:08

 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">


<xsl:variable name="nfspkgli" select="/etag/args/nfspkgli/value"/>
<xsl:variable name="etag" select="/etag"/>
<xsl:variable name="currentPackageNoVar" select="$etag/OrderH/NFSPackage[li_seq_no = '3326941']"/>
<xsl:variable name="currentPackage" select="$etag/OrderH/NFSPackage[li_seq_no = $nfspkgli]"/>

<xsl:variable name="hasNoPerfs" select="not($currentPackage/PackageEvent)"/>

<xsl:template match="/">
<!--This is a test.

nfspkgli: [<xsl:value-of select="$nfspkgli"/>]
count etag: <xsl:value-of select="count($etag)"/>
currentPackageNoVar: <xsl:value-of select="$currentPackageNoVar"/>-->
currentPackage: <xsl:value-of select="$currentPackage"/>

<!--
count currentPackageNoVar: <xsl:value-of select="count($currentPackageNoVar)"/>
count currentPackage: <xsl:value-of select="count($currentPackage)"/>
hasNoPerfs: <xsl:value-of select="$hasNoPerfs"/>

<xsl:if test="$hasNoPerfs">
HasNoPerfs = true
</xsl:if>

<xsl:if test="not($hasNoPerfs)">
HasNoPerfs != true
</xsl:if>-->

</xsl:template>


</xsl:stylesheet>
(2-2/2)