diff --git a/bin/action/actNewFichierAnalyse.class b/bin/action/actNewFichierAnalyse.class index 16e649c..ec95e79 100644 Binary files a/bin/action/actNewFichierAnalyse.class and b/bin/action/actNewFichierAnalyse.class differ diff --git a/src/action/actNewFichierAnalyse.java b/src/action/actNewFichierAnalyse.java index 42fb73c..d018730 100644 --- a/src/action/actNewFichierAnalyse.java +++ b/src/action/actNewFichierAnalyse.java @@ -100,6 +100,7 @@ public class actNewFichierAnalyse extends AbstractAction{ placeIsDoublonInStructure(commandes.sujet.retourneFirstEnfantsByName("structurepage")); placeIsDoublonInStylePage(commandes.sujet.retourneFirstEnfantsByName("style:page")); placeIsDoublonInStylePage(commandes.sujet.retourneFirstEnfantsByName("style:style")); + placeIsDoublonInStylePage(commandes.sujet.retourneFirstEnfantsByName("frames")); commandes.sujet.getAttributs().put("analysis_filename","sujet.xml"); @@ -156,7 +157,7 @@ public class actNewFichierAnalyse extends AbstractAction{ Enumeration pages = Collections.enumeration(nod.getNodes()); while(pages.hasMoreElements()) { node nodLaPage = pages.nextElement(); - Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$"); //le node qui peuvent rechercher par le contenu textuel + Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$|^text:s$"); //le node qui peuvent rechercher par le contenu textuel ArrayList listTextesInPage = new ArrayList(); for(int i = 0 ; i < nodLaPage.getNodes().size();i++) { Matcher m = p.matcher(nodLaPage.getNodes().get(i).getNomElt()); @@ -181,7 +182,7 @@ public class actNewFichierAnalyse extends AbstractAction{ Enumeration pages = Collections.enumeration(nod.getNodes()); while(pages.hasMoreElements()) { node nodLaPage = pages.nextElement(); - Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$"); //le node qui peuvent rechercher par le contenu textuel + Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$|^text:s$"); //le node qui peuvent rechercher par le contenu textuel ArrayList listTextesInPage = new ArrayList(); for(int i = 0 ; i < nodLaPage.getNodes().size();i++) { Matcher m = p.matcher(nodLaPage.getNodes().get(i).getNomElt()); @@ -207,7 +208,7 @@ public class actNewFichierAnalyse extends AbstractAction{ * @param nod */ private static void placeIsDoublon(node nod) { - Pattern p = Pattern.compile("^text:p$|^text:h$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$"); //le node qui peuvent rechercher par le contenu textuel + Pattern p = Pattern.compile("^text:p$|^text:h$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$|^text:s$"); //le node qui peuvent rechercher par le contenu textuel ArrayList listTextesInPage = new ArrayList(); for(int i = 0 ; i < nod.getNodes().size();i++) { Matcher m = p.matcher(nod.getNodes().get(i).getNomElt());