Object processENUM ( StylesheetHandler handler , String uri , String name , String rawName , String value , ElemTemplateElement owner ) throws org . xml . sax . SAXException { AVT avt = null ; if ( getSupportsAVT ( ) ) { try { avt = new AVT ( handler , uri , name , rawName , value , owner ) ; // If this attribute used an avt, then we can't validate at this time. if ( ! avt . isSimple ( ) ) return avt ; } catch ( TransformerException te ) { throw new org . xml . sax . SAXException ( te ) ; } } int retVal = this . getEnum ( value ) ; if ( retVal == StringToIntTable . INVALID_KEY ) { StringBuffer enumNamesList = getListOfEnums ( ) ; handleError ( handler , XSLTErrorResources . INVALID_ENUM , new Object [ ] { name , value , enumNamesList . toString ( ) } , null ) ; return null ; } if ( getSupportsAVT ( ) ) return avt ; else return new Integer ( retVal ) ; }
Process an attribute string of type T_ENUM into a int value .