dbertoni 01/12/14 08:25:28
Modified: c/src/XSLT Stylesheet.cpp
Log:
Fix for bug with applying imported attribute-sets. (Bugzilla 5428)
Revision Changes Path
1.68 +9 -8 xml-xalan/c/src/XSLT/Stylesheet.cpp
Index: Stylesheet.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XSLT/Stylesheet.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -r1.67 -r1.68
--- Stylesheet.cpp 2001/11/26 23:21:44 1.67
+++ Stylesheet.cpp 2001/12/14 16:25:27 1.68
@@ -1225,7 +1225,7 @@
}
-
+#if 0
XalanDOMString
Stylesheet::getAliasNamespaceURI(const XalanDOMChar* uri) const
{
@@ -1268,7 +1268,7 @@
return theResult;
}
}
-
+#endif
const XalanDecimalFormatSymbols*
@@ -1332,17 +1332,18 @@
if(0 != nNames)
{
- assert(m_importsSize == m_imports.size());
-
// Process up the import chain...
- for(StylesheetVectorType::size_type i = 0; i < m_importsSize;
i++)
- {
- const Stylesheet* const stylesheet =
m_imports[i];
+ const StylesheetVectorType::const_reverse_iterator theEnd
= m_imports.rend();
+ StylesheetVectorType::const_reverse_iterator i =
m_imports.rbegin();
- stylesheet->applyAttrSets(
+ while(i != theEnd)
+ {
+ (*i)->applyAttrSets(
attributeSetsNames,
executionContext,
sourceNode);
+
+ ++i;
}
for(QNameVectorType::size_type j = 0; j < nNames; j++)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]