import { AbbreviationNode , AbbreviationAttribute } from '@emmetio/abbreviation' ; /**
 * XSL transformer: removes `select` attributes from certain nodes that contain
 * children
 */ export default function xsl ( node ) { if ( matchesName ( node . name ) && node . attributes && ( node . children . length || node . value ) ) { node . attributes = node . attributes . filter ( isAllowed ) ; } } function isAllowed ( attr ) { return attr . name !== 'select' ; } function matchesName ( name ? ) { return name === 'xsl:variable' || name === 'xsl:with-param' ; }