#1.
I need logic that will execute the follwing template
<xsl:apply-templates select="SMapResponses/SMapResponse/SMapDetails/CabClass" mode="SDisplay"/>
if RS/SAvailRQ/FNum matches that found in RS/SMapRS/SMapResponses/SMapResponse/SegInfo/@FNum
per another question asked i have the following partial solution:
<xsl:variable name="this-fnum" select="ancestor::RS/SAvailRQ/FNum"/>
<xsl:apply-templates select="SMapResponses/SMapResponse/SegInfo[@FNum = $this-fnum]"/>
and this worked successfully but how do i apply this same concept new template call using SMapDetails grouped within SMapResponse?
#2.
similarly, i have for-each statement where again I need to have executed only when Fnum is found within xml
<xsl:for-each select="SMapResponses/SMapResponse"> //here only do this when Fnum is equal
<xsl:variable name="pos" select="position()"/>
<xsl:for-each select="SMapDetails/CabClass/ARows/ARow">
....
</xsl:for-each>
</xsl:for-each>
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
thank you so much for your help.