css - Apply style to xml attribute value -
i trying applying style below xml code label attribute
<navitem description="" id="client1" label="my information" sequencenumber="3" ></navitem> here xsl code
<h3 title="{@description}"> <a href="#"> <img src="{$imgsrc}" /> <xsl:value-of select="@label"/> </a> with above xslt code getting value label output don't no how apply css label.
kindly me
thanks & regards mahadevan
you need wrap value in html element, e.g.
<span class="label"><xsl:value-of select="@label"/></span> then can add suitable link element (referring external css stylesheet), or style element in head part, using normal css, e.g.
<style> .label { font-size: 80%; font-family: calibri, sans-serif } </style> as less structured approach, suitable in simplest cases, alternative use css style sheet embedded in style attribute:
<span style="font-size: 80%"><xsl:value-of select="@label"/></span>
Comments
Post a Comment