Jump to content

XSL modifiying <head> tag


TheJoey

Recommended Posts

one value of, one variable

or

concat

 

	

<head>
<xsl:variable name="var1" select="var1"/>
<xsl:variable name="var2" select="var2"/>
<title><xsl:value-of select="$var1" /><xsl:value-of select="$var2" /></title>
</head>

 

or

 

	
<head>
<xsl:variable name="var1" select="var1"/>
<xsl:variable name="var2" select="var2"/>
<title><xsl:value-of select="concat($var1,$var2)" /></title>
<!--  or if you want the comma, you can add it to concat.  concat takes an unlimited number of arguments
    <xsl:value-of select="concat($var1,',',$var2)" />
-->
</head>

 

Link to comment
https://forums.phpfreaks.com/topic/199274-xsl-modifiying-tag/#findComment-1045925
Share on other sites

	

  
  
  
    
    
    
  

 

You have to use two separate value-of statements.  Not sure if you literally wanted the comma between the two value, but if you do then uncomment the 'text' line.

 

	

  
    
    
    
  

 

Not sure if you're using these variables anywhere else, in which case you would keep them in variables, but if not you can just use the value-of and select the var elements.

Link to comment
https://forums.phpfreaks.com/topic/199274-xsl-modifiying-tag/#findComment-1045926
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.