dbertoni 2002/12/20 16:22:23
Modified: c/src/XSLT KeyTable.cpp
Log:
Report line/column number and URI in exception.
Revision Changes Path
1.23 +5 -0 xml-xalan/c/src/XSLT/KeyTable.cpp
Index: KeyTable.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/KeyTable.cpp,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- KeyTable.cpp 25 Nov 2002 18:11:52 -0000 1.22
+++ KeyTable.cpp 21 Dec 2002 00:22:23 -0000 1.23
@@ -139,8 +139,13 @@
if (executionContext.getInConstruction(kd) ==
true)
{
+ assert(kd.getURI() != 0);
+
throw XSLTProcessorException(
TranscodeFromLocalCodePage("The use of the key() function in the \"match\" or
\"use\" attribute of xsl:key is illegal!"),
+ *kd.getURI(),
+ kd.getLineNumber(),
+ kd.getColumnNumber(),
TranscodeFromLocalCodePage("XSLTKeyIllegalKeyFunctionException"));
}
else
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]