private List < TransformEntry > readTransformEntries ( File file ) throws Exception { List < TransformEntry > result = new ArrayList <> ( ) ; try ( FileInputStream fis = new FileInputStream ( file ) ) { byte [ ] data = CmsFileUtil . readFully ( fis , false ) ; Document doc = CmsXmlUtils . unmarshalHelper ( data , null , false ) ; for ( Node node : doc . selectNodes ( "//transform" ) ) { Element elem = ( ( Element ) node ) ; String xslt = elem . attributeValue ( "xslt" ) ; String conf = elem . attributeValue ( "config" ) ; TransformEntry entry = new TransformEntry ( conf , xslt ) ; result . add ( entry ) ; } } return result ; }
Reads entries from transforms . xml .