You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2003/08/03 16:19:31 UTC

Bug report for XalanJ1 [2003/08/03]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker     CRI=Critical    MAJ=Major             |
|     |   |           MIN=Minor       NOR=Normal      ENH=Enhancement       |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
| 1111|New|Maj|2001-03-26|Memory leak in Xaan1                              |
| 1220|New|Nor|2001-04-04|Cannot use compiled stylesheets                   |
| 1350|New|Cri|2001-04-16|XSLProcessorException thrown in Multi-threaded env|
| 1470|New|Nor|2001-04-24|output method=html encoding=utf-8: Greek character|
| 1570|New|Nor|2001-04-27|Xalan 1.2 does not work at command prompt: xalan i|
| 1720|New|Nor|2001-05-11|something with Xalan on some machines             |
| 2397|New|Cri|2001-06-29|Using substring() function with a string which has|
| 3564|New|Nor|2001-09-12|Thread issue                                      |
| 4169|New|Maj|2001-10-15|Xalan VerifyError                                 |
+-----+---+---+----------+--------------------------------------------------+
| Total    9 bugs                                                           |
+---------------------------------------------------------------------------+

bug? test="not($anchor_idref='')"

Posted by Robert Koberg <ro...@koberg.com>.
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