2 Replies Latest reply on Dec 17, 2014 5:44 AM by Subhrajyoti Moitra

    XML Sequencing creating new nodes with same name

    Subhrajyoti Moitra Newbie

      Hello,

      I am trying to use Modeshape4.0 in embedded form.

      Below is a sequencing config i have in my config json.

       

      "sequencing" : {

              "removeDerivedContentWithOriginal" : true,

              "sequencers" : {

                  "XSD Sequencer" : {

                      "classname" : "xsdsequencer",

                      "pathExpressions" : [ "default://(*.xsd)/jcr:content[@jcr:data] => /xsd_metadata" ]

                  },

                  "XML Sequencer" : {

                      "classname" : "xmlsequencer",

                      "pathExpressions" : [ "default://(*.(xml|cmmn|bpmn|bpmn2))/jcr:content[@jcr:data] => /xml_metadata" ]

                  },

                  "Image Sequencer" : {

                      "description" : "Images sequencer",

                      "classname" : "ImageSequencer",

                      "pathExpressions" : [ "default://(*.(gif|png|pict|jpg))/jcr:content[@jcr:data] => /img_metadata" ]

                  }

              }

          }

       

      When i upload different xml, cmmn, bpmn files into the repo, different xml_metadata nodes are created, nodeids for these nodes are different.

      So now I have paths like /xml_metadata, /xml_metadata[2] and /xml_metadata[3]

      for 3 files i upload into the repository.

      I want all the files to appear under one /xml_metadata node.

       

      How do i do it? What am i doing wrong? Any pointers where the problem might be?

       

      Please help.

      Thanks,

      Subhro.