DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14360>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14360 XPathAPI.selectSingleNode seems to truncate text node value ------- Additional Comments From [EMAIL PROTECTED] 2002-12-16 05:17 ------- I am using Xalan 2.4.1, but there's one more thing I forgot to mention. The DOM node that is passed into the function is generated via an XSLT transformation that includes the following code: <!-- DateOfReading - A global parameter defined at the top level of the stylesheet--> <xsl:param name="DateOfReading"> <xsl:value-of select="/clinical_document/interval/start/measure/ub/text()"/> </xsl:param> Then the value of the parameter is inserted into the result document within an XSL template: <xsl:template match="ec"> ....some stuff... <Field> <FieldName>DateOfReading</FieldName> <FieldValue><xsl:value-of select="$DateOfReading"/></FieldValue> </Field> ...some stuff... </xsl:template> The use of a global parameter to insert the value into the output document seems to be the factor that's causing the error. The error does not occur if I generate the DOM node with a "literal" assignment, such as <xsl:template match="ec"> ....some stuff... <Field> <FieldName>DateOfReading</FieldName> <FieldValue>2002-10-17T11:00:00-08:00</FieldValue> </Field> ...some stuff... </xsl:template> This is probably why you were unable to reproduce the error. Please try again under the described conditions (I can send you an entire input document and stylesheet that create this error, if it's helpful). Thanks, -Walter
