You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/02/24 17:45:08 UTC
cvs commit: xml-xalan/src/org/apache/xalan/xslt ElemCallTemplate.java
mmidy 00/02/24 08:45:08
Modified: src/org/apache/xalan/xslt ElemCallTemplate.java
Log:
Check for required name attribute
Revision Changes Path
1.9 +6 -1 xml-xalan/src/org/apache/xalan/xslt/ElemCallTemplate.java
Index: ElemCallTemplate.java
===================================================================
RCS file: /home/cvs/xml-xalan/src/org/apache/xalan/xslt/ElemCallTemplate.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ElemCallTemplate.java 2000/02/23 06:07:04 1.8
+++ ElemCallTemplate.java 2000/02/24 16:45:07 1.9
@@ -86,12 +86,17 @@
String aname = atts.getName(i);
if(aname.equals(Constants.ATTRNAME_NAME))
{
- m_templateName = new QName(atts.getValue(i), m_stylesheet.m_namespaces);
+ m_templateName = new QName(atts.getValue(i), m_stylesheet.m_namespaces);
}
else if(!isAttrOK(aname, atts, i))
{
processor.error(XSLTErrorResources.ER_ILLEGAL_ATTRIBUTE,new Object[] {name, aname}); //name+" has an illegal attribute: "+aname);
}
+ }
+ if (null == m_templateName)
+ {
+ if(null != processor)
+ processor.error(XSLTErrorResources.ER_NO_NAME_ATTRIB, new Object[] {name}); //name+" requires a name attribute.");
}
}