Jump to content

freddo99

Members
  • Content Count

    2
  • Joined

  • Last visited

Community Reputation

0 Neutral

About freddo99

  • Rank
    Newbie
  1. I have an xsl file with the following two lines "<xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>" "<xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>" I want to test for the value of imagesize/@width and set the values of width and height if the test condition is meet. I have tried the following without success <xsl:choose> <xsl:when test="350 > imagesize/@width"> <xsl:attribute name="width"><xsl:value-of select="420"/></xsl:attribute>
  2. I have the following code in the xsl file <IMG name="logo" border="1" vspace="20" hspace="50"> <xsl:attribute name="src"><xsl:value-of select="@fname"/> </xsl:attribute> <xsl:attribute name="width"><xsl:value-of select="[email="imagesize/@width"]imagesize/@height"/[/email]> </xsl:attribute> <xsl:attribute name="alt"><xsl:value-of select="title"/> </xsl:attribute></IMG> and want to be able to test for the value of width and change both the value of width and height if the test is meet. I have tried the following which do
×
×
  • Create New...