Object processNCNAME ( StylesheetHandler handler , String uri , String name , String rawName , String value , ElemTemplateElement owner ) throws org . xml . sax . SAXException { if ( getSupportsAVT ( ) ) { AVT avt = null ; try { avt = new AVT ( handler , uri , name , rawName , value , owner ) ; // If an AVT wasn't used, validate the value if ( ( avt . isSimple ( ) ) && ( ! XML11Char . isXML11ValidNCName ( value ) ) ) { handleError ( handler , XSLTErrorResources . INVALID_NCNAME , new Object [ ] { name , value } , null ) ; return null ; } return avt ; } catch ( TransformerException te ) { // thrown by AVT constructor throw new org . xml . sax . SAXException ( te ) ; } } else { if ( ! XML11Char . isXML11ValidNCName ( value ) ) { handleError ( handler , XSLTErrorResources . INVALID_NCNAME , new Object [ ] { name , value } , null ) ; return null ; } return value ; } }
Process an attribute string of type NCName into a String