It works when you do:

not(''=$anchor_idref)

best,
-Rob

> > > >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>
> > > >}


Reply via email to