dbertoni 01/06/29 11:52:07
Modified: c/src/XSLT StylesheetHandler.cpp
Log:
Removed unused code and parameters.
Revision Changes Path
1.65 +17 -39 xml-xalan/c/src/XSLT/StylesheetHandler.cpp
Index: StylesheetHandler.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/StylesheetHandler.cpp,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -r1.64 -r1.65
--- StylesheetHandler.cpp 2001/05/14 01:03:12 1.64
+++ StylesheetHandler.cpp 2001/06/29 18:52:05 1.65
@@ -952,16 +952,13 @@
break;
case Constants::ELEMNAME_DECIMALFORMAT:
- {
- ElemDecimalFormat* const edf =
- new
ElemDecimalFormat(m_constructionContext,
-
m_stylesheet,
-
atts,
-
lineNumber,
-
columnNumber);
-
- m_stylesheet.processDecimalFormatElement(edf, atts,
m_constructionContext);
- }
+ m_stylesheet.processDecimalFormatElement(
+ new ElemDecimalFormat(
+ m_constructionContext,
+ m_stylesheet,
+ atts,
+ lineNumber,
+ columnNumber));
break;
case Constants::ELEMNAME_NSALIAS:
@@ -1044,15 +1041,7 @@
{
const XalanDOMChar* const aname = atts.getName(i);
- if(equals(aname, Constants::ATTRNAME_RESULTNS))
- {
- throw SAXException("result-ns no longer supported! Use
xsl:output instead.");
- }
- else if(equals(aname, Constants::ATTRNAME_DEFAULTSPACE))
- {
- throw SAXException("default-space no longer supported!
Use xsl:strip-space or xsl:preserve-space instead.");
- }
- else if(equals(aname,
Constants::ATTRNAME_EXCLUDE_RESULT_PREFIXES))
+ if(equals(aname, Constants::ATTRNAME_EXCLUDE_RESULT_PREFIXES))
{
m_stylesheet.processExcludeResultPrefixes(atts.getValue(i),
m_constructionContext);
}
@@ -1077,13 +1066,10 @@
{
//
}
- else if(equals(aname, Constants::ATTRNAME_INDENTRESULT))
- {
- throw SAXException("indent-result no longer supported!
Use xsl:output instead.");
- }
else if(equals(aname, Constants::ATTRNAME_VERSION))
{
const XalanDOMChar* const versionStr =
atts.getValue(i);
+ assert(versionStr != 0);
m_stylesheet.setXSLTVerDeclared(DoubleSupport::toDouble(versionStr));
@@ -1097,8 +1083,11 @@
{
if(false == m_stylesheet.isWrapperless())
{
- XalanDOMString msg("(StylesheetHandler) " +
XalanDOMString(name) +
-
" has an illegal attribute: " + aname);
+ const XalanDOMString msg(
+ "(StylesheetHandler) " +
+ XalanDOMString(name) +
+ " has an illegal attribute: " +
+ aname);
throw SAXException(c_wstr(msg));
}
@@ -1114,17 +1103,6 @@
{
throw SAXException(c_wstr(TranscodeFromLocalCodePage("The
stylesheet element did not specify a version attribute!")));
}
- else
- {
- if (fPreserveSpace == false)
- {
- m_stylesheet.setDefaultSpaceProcessing(true);
- }
- else
- {
- m_stylesheet.setDefaultSpaceProcessing(false);
- }
- }
}
@@ -1137,9 +1115,9 @@
{
if (equals(localName, Constants::ATTRNAME_COMPONENTS))
{
- XalanDOMString prefix;
- XalanDOMString elements;
- XalanDOMString functions;
+ XalanDOMString prefix;
+ XalanDOMString elements;
+ XalanDOMString functions;
const int nAttrs = atts.getLength();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]