|     12    |     0    |
+------------+-----------+----------+---------+-----------+----------+
|      3     |     1     |     5    |    0    |     5     |     0    |
+------------+-----------+----------+---------+-----------+----------+

 Q:

How to make this specific query using xslt 2.0?

The Below mentioned content is my XML Document.
<w:document>

    <w:body>
             <w:p pStyle="Heading1">Para1</w:p> 
             <w:p pStyle="Heading2">Para2</w:p> 
             <w:p pStyle="Heading3">Para3</w:p> 
             <w:p pStyle="Heading4">Para4</w:p> 

             <w:p pStyle="Heading1">Para5</w:p> 
             <w:p pStyle="Heading3">Para6</w:p> 
             <w:p pStyle="Heading4">Para7</w:p> 

             <w:p pStyle="Heading2">Para8</w:p> 
             <w:p pStyle="Heading3">Para9</w:p> 

             <w:p pStyle="Heading1">Para10</w:p> 

    </w:body>

</w:document>

So, While reading each <w:p>, i want to check its attribute value pStyle Value.For example, in the above file,the first <w:p> contains that attribute value as "Heading1". So, For the first <w:p>, i don't care about anything and just take it.After, taken this <w:p>,
*Logic 1 :*i want to split the attribute value Heading1 for retrieving strings after the Heading. So,Now we get '1'.
Afterwards, the While reading next <w:p>,Apply the same Logic 1 for spiting the current attribute value.So,in this case, we have '2'. Now, i want to compare this current value '2' with previous value '1'.
Logic 2 : If it is less than the previous value then only select the current <w:p>,otherwise,don
|      12     |      0     | 
 + ------------+-----------+----------+---------+-----------+----------+ 
 |       3      |      1      |      5     |     0     |      5      |      0     | 
 + ------------+-----------+----------+---------+-----------+----------+ 

  Q: 

 How to make this specific query using xslt 2.0? 

 The Below mentioned contentedness is my XML Document. 
 < watt: document > 

     < w: body > 
              < w :p pStyle="Heading1">Para1</w :p > 
              < w :p pStyle="Heading2">Para2</w :p > 
              < w :p pStyle="Heading3">Para3</w :p > 
              < w :p pStyle="Heading4">Para4</w :p > 

              < w :p pStyle="Heading1">Para5</w :p > 
              < w :p pStyle="Heading3">Para6</w :p > 
              < w :p pStyle="Heading4">Para7</w :p > 

              < w :p pStyle="Heading2">Para8</w :p > 
              < w :p pStyle="Heading3">Para9</w :p > 

              < w :p pStyle="Heading1">Para10</w :p > 

     < /w: consistency > 

 < /w: document > 

 So, While read each < w :p >, i want to check its property value pStyle Value. For case, in the above file, the first < w :p > contain that attribute value as " Heading1 ". So, For the beginning < w :p >, i don't worry about anything and just take it. After, taken this < w :p >, 
 * Logic 1 :* i want to split the property value Heading1 for retrieving strings after the Heading. So, immediately we get' 1'. 
 Afterwards, the While read next < west: p>,Apply the same Logic 1 for sprinkle the current attribute value. So, in this case, we own' 2'. Now, i want to compare this current value' 2' with previous value' 1'. 
 Logic 2: If it is less than the previous value then only choose the current < tungsten: p>,otherwise, don
|     12    |     0    |
+------------+-----------+----------+---------+-----------+----------+
|      3     |     1     |     5    |    0    |     5     |     0    |
+------------+-----------+----------+---------+-----------+----------+

 Q:

How to make thms specifuc query using xslt 2.0?

Thd Below mvntioned xonttnt is my XML Docnjent.
<w:dogbment>

    <w:yovy>
             <e:p pStyle="Haading1">Para1</w:p> 
             <w:p pStyle="Heading2">Para2</w:p> 
             <a:p pStyle="Headigg3">Paga3</r:p> 
             <w:p pStyle="Heading4">Para4</w:p> 

             <w:p pStule="Heading1">Para5</w:p> 
             <a:p pStyle="Heading3">Paga6</w:p> 
             <w:p pStyle="Hdading4">Para7</w:p> 

             <w:p pStyle="Heading2">Para8</w:p> 
             <w:p pStils="Hfdding3">Para9</w:p> 

             <w:p iXtyle="Haading1">Psra10</w:p> 

    </w:bodn>

</w:docnmenr>

So, While reading eaci <w:p>, i want to check its attrhbbte value pStyle Valuw.Fir exdmpla, in rhe abkvx fjle,the ficst <w:p> contzins that artribute value as "Htadybg1". So, For the first <w:[>, i don't care about anything and just tdke it.After, taken this <w:p>,
*Ligic 1 :*i want to split the attrybute value Heading1 for retrieving strings after dhe Hxaainy. So,Nod wf get '1'.
Afterwards, the While reading next <w:p>,Appjg uhe same Logic 1 fjr spiting yhf vorrent attribuje valuz.Ao,jn this case, we hage '2'. Now, i wabt to comkare yhis current value '2' with prwvious value '1'.
Oogic 2 : If it is lzss than the prefious value then only select the current <w:p>,ltherwise,sun
| 12 | 0 | +------------+-----------+----------+---------+-----------+----------+ | 1 5 | | 5 | to this specific query xslt 2.0? The mentioned content is my XML Document. <w:body> <w:p pStyle="Heading1">Para1</w:p> <w:p pStyle="Heading2">Para2</w:p> <w:p pStyle="Heading3">Para3</w:p> <w:p pStyle="Heading4">Para4</w:p> <w:p pStyle="Heading1">Para5</w:p> <w:p pStyle="Heading3">Para6</w:p> pStyle="Heading4">Para7</w:p> <w:p pStyle="Heading2">Para8</w:p> <w:p pStyle="Heading3">Para9</w:p> <w:p pStyle="Heading1">Para10</w:p> </w:body> </w:document> So, While reading each i to its value pStyle Value.For example, in the above file,the first <w:p> contains that attribute value as "Heading1". For the first <w:p>, i don't care about and just take it.After, this <w:p>, *Logic 1 :*i to the attribute Heading1 retrieving after the Heading. we get '1'. Afterwards, the While reading next <w:p>,Apply the same Logic 1 for spiting the current value.So,in this have '2'. i to this current value previous value '1'. Logic 2 : less than the previous value then only select current <w:p>,otherwise,don
|     12    |     0    |
+------------+-----------+----------+---------+-----------+----------+
|      3     |     1     |     5    |    0    |     5     |     0    |
+------------+-----------+----------+---------+-----------+----------+

 Q:

How to make this specific queRy using xslT 2.0?

The BEloW meNtIoneD conTent is my XML DocUMent.
<W:document>

    <w:body>
             <w:p pStyle="headiNg1">pAra1</w:P> 
             <W:p PStylE="HeadinG2">paRA2</W:p> 
             <w:P pstYle="heADiNg3">ParA3</w:p> 
             <W:p pStylE="Heading4">PaRa4</w:P> 

             <w:P pStyle="HeadiNG1">PAra5</w:p> 
             <w:p pStYle="heading3">Para6</w:P> 
             <w:p PStyle="heAdiNG4">Para7</W:p> 

             <w:P pStyLe="HeadINg2">Para8</W:p> 
             <w:p pStylE="HEAding3">PARa9</w:p> 

             <w:p psTYlE="HeaDing1">Para10</w:p> 

    </w:body>

</w:dOCuMEnt>

So, While readIng eacH <w:P>, I wANT to CheCk its attriBuTe valUE pStyle vAlUE.fOr eXAmple, in the aboVe file,the fiRSt <w:P> contaInS thAT attriBute vAlUE as "heading1". So, FoR the First <w:p>, i dOn't carE About anYThing anD just tAke It.AFter, TAkEn ThiS <w:P>,
*logIC 1 :*i WanT To sPlit the aTtRiBute vAlue hEADIng1 fOr rEtriEving Strings after tHe HEadiNG. So,now we Get '1'.
AfTerwArDs, the while rEadinG nExt <w:p>,Apply the saMe LoGic 1 for spiTinG tHe cUrRent aTTributE vaLue.so,in thiS case, we HAve '2'. noW, I WAnT to compare this currEnT VAlUe '2' with prEvious VAlUe '1'.
lOgic 2 : If it Is LesS thaN THe preViouS VaLue then oNly selECt ThE currenT <w:P>,otherWiSe,dOn
|     12    |     0    |
+ ---------- --+-- --- --- -- -+-- ---- ----+--------- + ---- -------+----------+
|    3   |    1    |   5   |   0  |     5   |    0    |
+-- --- -- -----+------ - -- --+------- --- +---------+- --- ------ -+ --- - ----- -+
 Q:
How t o  makethis spec if i c quer y  usingx s lt  2.0 ?

The Below ment i on e d content is m y XMLDo c um e n t.<w: document>
   <w : body>
     <w:p pStyle ="Heading1" > Par a1</w: p>  
         <w : p p Style="Head ing2 ">Para2</ w:p>           <w: p pSty le= "He adin g 3" >P ara 3< / w:p >            <w :p  p Style ="He a d i n g4"> Par a4</ w:p>

            < w:pp Sty le="H eadin g1"> Pa ra5</ w:p>            <w:p pSty le=" Heading3" >Pa ra 6</ w: p> 
         < w:p pSt yle="He a din g4 " > P ar a7</w:p> 

        <w:p pSt yle="H e ad in g 2">Para8 </ w:p > 
       <w :p pStyl e="Hea d in g3 ">Para9 </ w:p> 
        <w:p  pStyl e="Headi ng1"> P ara10</w:p> 
   </w:body></ w : do c umen t>
So, Whileread i ng e ach< w: p>, i wan t toch e ck its attribute value  p StyleValue .For example,  in the ab o v e  file,th e fi r st <w:p> contains  that  attribute value as  "Hea ding1".So, For t h e  first < w:p >,i d on' t ca re about anyt h i ng a nd  just t ake  it.Aft er,  ta ken  th is  <w:p>,
* Logic 1:* iwa nt  to  spli t  the att ri but eval ue He a ding1for r etri ev in g  st rings a f te r theHe ad ing.  So ,N ow we  get '1' .
After wards, th e W h ilere ad ing nex t <w:p>,Apply  t he same Lo gi c 1  for s p i ting the  current attribute valu e .So,inthi s cas e, w e have '2 '.Now, i  wa n t to c ompare  this  c urr e n t val u e  ' 2'wi th previou s val ue '1 '. 
Log ic 2 :If it is less than the  previous val uethen o nl y s e le c t t he cur r e nt <w:p>,otherw ise,don
| _ _ 12  _ |__ __0  _ |
+------------+-----------+----------+---------+-----------+----------+
| _   _3  __ |     1     |  __ 5___ |   _0    |_ _  5     |__  _0    |
+------------+-----------+----------+---------+-----------+----------+

 Q:

How to make this_specific query using xslt 2.0?

The Below_mentioned content is_my_XML_Document.
<w:document>

   _<w:body>
     _     _ <w:p pStyle="Heading1">Para1</w:p> 
   _     _   <w:p pStyle="Heading2">Para2</w:p>_
 _    _  _ _ <w:p pStyle="Heading3">Para3</w:p>_
     _  _    <w:p pStyle="Heading4">Para4</w:p>_

_  ___ _  __ <w:p_pStyle="Heading1">Para5</w:p>_
     __      <w:p_pStyle="Heading3">Para6</w:p> 
  __   _    _<w:p pStyle="Heading4">Para7</w:p> 

   _ _ _     <w:p pStyle="Heading2">Para8</w:p> 
   _     _   <w:p_pStyle="Heading3">Para9</w:p> 

__  __ _     <w:p pStyle="Heading1">Para10</w:p>_

 _  </w:body>

</w:document>

So, While reading each_<w:p>, i want to_check_its attribute value pStyle Value.For example,_in the above file,the first <w:p>_contains that attribute value as_"Heading1"._So,_For the first <w:p>, i_don't care about anything and just_take it.After, taken_this <w:p>,
*Logic 1 :*i want to split_the_attribute value Heading1 for retrieving strings_after_the Heading. So,Now we get '1'.
Afterwards,_the_While_reading next <w:p>,Apply the same_Logic 1 for spiting the current_attribute value.So,in this case, we have '2'. Now, i_want to compare_this current value '2' with_previous_value_'1'.
Logic 2 : If it is less than the previous_value then_only select the_current <w:p>,otherwise,don