mmidy 00/02/23 13:09:45
Modified: src/org/apache/xalan/xslt ElemCopyOf.java
Log:
Select attribute is required.
Revision Changes Path
1.8 +2 -0 xml-xalan/src/org/apache/xalan/xslt/ElemCopyOf.java
Index: ElemCopyOf.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/ElemCopyOf.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ElemCopyOf.java 2000/02/21 20:44:50 1.7
+++ ElemCopyOf.java 2000/02/23 21:09:44 1.8
@@ -81,6 +81,8 @@
{
super(processor, stylesheetTree, name, atts, lineNumber, columnNumber);
int nAttrs = atts.getLength();
+ if (!(nAttrs > 0))
+ processor.error(XSLTErrorResources.ER_NEED_SELECT_ATTRIB, new Object[]
{name});
for(int i = 0; i < nAttrs; i++)
{
String aname = atts.getName(i);