dbertoni 2003/09/18 17:16:01
Modified: c/src/xalanc/XSLT StylesheetHandler.cpp
Log:
Don't allow gratuitous whitespace where it's not supposed to be.
Revision Changes Path
1.3 +14 -4 xml-xalan/c/src/xalanc/XSLT/StylesheetHandler.cpp
Index: StylesheetHandler.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/xalanc/XSLT/StylesheetHandler.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- StylesheetHandler.cpp 12 Jul 2003 00:38:32 -0000 1.2
+++ StylesheetHandler.cpp 19 Sep 2003 00:16:01 -0000 1.3
@@ -1071,10 +1071,20 @@
{
if (e.getExceptionCode() ==
XalanDOMException::HIERARCHY_REQUEST_ERR)
{
- error(
- elem->getElementName(),
- XALAN_STATIC_UCODE_STRING(" is not allowed at
this position in the stylesheet"),
- locator);
+ if (elem->getXSLToken() ==
StylesheetConstructionContext::ELEMNAME_TEXT_LITERAL_RESULT)
+ {
+ error(
+ elem->getElementName(),
+ XALAN_STATIC_UCODE_STRING(" or literal
text is not allowed at this position in the stylesheet"),
+ locator);
+ }
+ else
+ {
+ error(
+ elem->getElementName(),
+ XALAN_STATIC_UCODE_STRING(" is not
allowed at this position in the stylesheet"),
+ locator);
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]