Hi,

I am doing a test on a global xsl:param to see if it contains a string or
nothing. The snippet below evaluates to true when no value is being passed
into the anchor_idref param. If this is not the proper way to test for
something like this, what is?

<!-- custom handling of anchors for our cms' link tags -->
function checkAnchor() {
  <xsl:if test="not($anchor_idref='')">
  if (null!=<xsl:value-of select="$anchor_idref"/>) {
    <xsl:value-of select="$anchor_idref"/>.scrollIntoView();
  }
  </xsl:if>
}

I am using:

$ java -version
java version "1.4.1_03"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_03-b02)
Java HotSpot(TM) Client VM (build 1.4.1_03-b02, mixed mode)

And:

org.apache.xerces.jaxp.SAXParser
org.apache.xalan.processor.TransformerFactoryImpl

thanks,
-Rob

Reply via email to