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 2001/09/10 17:00:55 UTC

[DO NOT REPLY: Bug 3526] New: Access violation in DOMServices::getNamespaceForPrefix (DOMServices.cpp:759)

PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3526

*** shadow/3526	Mon Sep 10 08:00:55 2001
--- shadow/3526.tmp.7617	Mon Sep 10 08:00:55 2001
***************
*** 0 ****
--- 1,75 ----
+ +============================================================================+
+ | Access violation in DOMServices::getNamespaceForPrefix (DOMServices.cpp:75 |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 3526                        Product: XalanC                  |
+ |       Status: NEW                         Version: 1.2.x                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority: Other                     Component: XalanC                  |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xalan-dev@xml.apache.org                                     |
+ |  Reported By: kagren@epani.com                                             |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When I use the XPathEvaluator, reference namespaces in the XPath
+ expression, and pass in the namespace node as the last parameter to
+ selectSingleNode:
+ 
+ XPathEvaluator xEvaluator;
+ 
+ pxNode = xEvaluator.selectSingleNode(theDOMSupport, m_pxNode,
+ "//xsl:if", pElem);
+ 
+ I get an access violation in DOMServices.cpp line 759: (theNamepsace is NULL)
+ 
+ while (parent != 0 && length(*theNamespace) == 0
+              && ((type = parent->getNodeType()) == XalanNode::ELEMENT_NODE
+                          || type == XalanNode::ENTITY_REFERENCE_NODE))
+ 
+ 
+ --------------- XSL file ------------------
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
+ xmlns:ssls="http://www.epani.com/ssls/ns" version="1.0">
+ 	<!-- /////////////////////////////////////////////  -->
+ 	<!-- pageflipper                                    -->
+ 	<!--                                                -->
+ 	<!-- Description                                    -->
+ 	<!--    Shows a row of links designed to flip the   -->
+ 	<!--	   active page showed                          -->
+ 	<!--                                                -->
+ 	<!-- Parameters                                     -->
+ 	<!--    pageURL       The active URL                -->
+ 	<!--                                                -->
+ 	<!--                                                -->
+ 	<!-- /////////////////////////////////////////////  -->
+ 	<ssls:section name="pageflipper">
+ 		<xsl:if test="count(/root/page/collpages/collpages_Item) > 1">
+ 			<xsl:for-each 
+ select="/root/page/collpages/collpages_Item">
+ 				<xsl:choose>
+ 					<xsl:when test="lstartitem !
+ = /root/page/lstartitem">
+ 						<a>
+ 							<xsl:attribute 
+ name="href"><ssls:param name="pageURL"/>sid=<xsl:value-of 
+ select="/root/session/tsid"/>&amp;start=<xsl:value-of 
+ select="lstartitem"/></xsl:attribute>
+ 							<xsl:value-of 
+ select="position()"/>
+ 						</a>
+ 					</xsl:when>
+ 					<xsl:otherwise>
+ 						<xsl:value-of select="position
+ ()"/>
+ 					</xsl:otherwise>
+ 				</xsl:choose>
+ 				<xsl:if test="position() != last()">|</xsl:if>
+ 			</xsl:for-each>
+ 		</xsl:if>
+ 	</ssls:section>
+ </xsl:stylesheet>
+ -------------------------------------------