Custom XSL

Discuss the powerful Explorer Templates used in the CAT programs
Peerli
Posts: 30
Joined: Sun Sep 06, 2015 3:54 pm

Re: Custom XSL

Post by Peerli » Thu Jun 11, 2020 1:19 pm

Hi Doug.
Thanx for your help.
I have now realized it.
But the changed name was not addressed at XSL, as you can see below
amii_5.jpg
amii_5.jpg (117.3 KiB) Viewed 65 times

Code: Select all

            <tr>
              <td class="record_pane_table_fieldname" nowrap=""><xsl:text>Original von</xsl:text></td>
	      	  <td style="color: green;" class="record_pane_table_fieldvalue">
                <a href="ArtistPerson.xsl?ID={data/record/trackdata/originalby/@id}" target="_blank"><xsl:value-of select="data/record/trackdata/originalby/text()"/></a>
	    		<xsl:if test="data/record/trackdata/custom30!=''">
					<xsl:text> (</xsl:text><xsl:value-of select="data/record/trackdata/custom30/text()"/><xsl:text>)</xsl:text>
				</xsl:if>
              </td>
            </tr>    
            </xsl:if>
amii_2.jpg
amii_2.jpg (51.82 KiB) Viewed 65 times
King Regards
Peer

User avatar
DougWilliams
Site Admin
Posts: 364
Joined: Thu May 22, 2014 11:36 am
Location: Wisconsin, USA
Contact:

Re: Custom XSL

Post by DougWilliams » Fri Jun 12, 2020 12:27 am

Are you wanting the field name AND the field value to display after the Original By field value?
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

Peerli
Posts: 30
Joined: Sun Sep 06, 2015 3:54 pm

Re: Custom XSL

Post by Peerli » Fri Jun 12, 2020 5:03 am

Actually, I get my variant, but I'm interested in it as information.

User avatar
DougWilliams
Site Admin
Posts: 364
Joined: Thu May 22, 2014 11:36 am
Location: Wisconsin, USA
Contact:

Re: Custom XSL

Post by DougWilliams » Sat Jun 13, 2020 2:35 pm

Any name changes are purely cosmetic. XSL requires the actual data field name.
Record Collector
"You Mean I'm Supposed To Listen To 'Em?!?!?!?"

Post Reply