Hi , Can anyone suggest how(or whether) it's possible to extract the sitename value . Thanks for your comments ,Subhojit
It depends where you would like to extract it,on component ,on template or on page level and also in which environment RUN-TIME or DEVELOPMENT.Kindly elaborate the requirement,then it would be easier to hunt for the approach.
In Java External/Controller: RequestContext.getSite().getName()In XSL directly: <xsl:value-of select="$CONTEXT{site.name}"/> I haven't tried the latter one myself but it should work directly in the XSL. If it doesn't you can always set the value using Java External and retrieve it from XSL later.
I recommend the Java external. The $CONTEXT route will evaluate correctly, but not until after the XSL is rendered, so you can't use it in XSL conditions. This drove me crazy until I figured it out.Stokes.