/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8" indent="yes" />
    <xsl:key name="type" match="event-date" use="type" />
     <xsl:template match="isif_data">
      <xsl:element name="isif_data">
       <xsl:for-each select="date">
        <xsl:element name="date"><xsl:value-of select="date"/></xsl:element>
        <xsl:element name="cell"/>
         <xsl:for-each select="event-date[count(. | key('type', type)[1]) = 1]">
          <xsl:sort select="time/@Timesort" />
           <xsl:call-template name="type" />
            <xsl:for-each select="key('type', type)">
             <xsl:call-template name="time" />
             <xsl:call-template name="title" />
             <xsl:call-template name="place" />
            </xsl:for-each>
           </xsl:for-each>
        </xsl:for-each>
       </xsl:element>
      </xsl:template>
     </xsl:stylesheet>

If you need templates i can provide them too. I'm not really sure if it they are needed.

A:

Is there a possibility to make a group for each date-tag from the
  original code?  

This:
<xsl:key name="type" match="event-date" use="type" />

will group all event-dates by type, regardless of date. Since you want to group the events by type within each date, you need to use both date and type in the key:
<xsl:key name="type" match="event-date" use="concat (../., '|', type)" />

 Q:

How to convert to System.Int32 when doing a select from a DataTable

I've got a DataTable that I've loaded from a CSV file using the KBCsv library. From what I can tell the columns are all numbers in the csv file and there aren't any null rows. I want to do a select on the data table with a query that I've created using String.Format. Here's
/1999 / XSL / Transform " > 
     < xsl: output method="xml " encoding="UTF-8 " indent="yes " / > 
     < xsl: key name="type " match="event - date " use="type " / > 
      < xsl: template match="isif_data " > 
       < xsl: element name="isif_data " > 
        < xsl: for - each select="date " > 
         < xsl: element name="date"><xsl: value - of select="date"/></xsl: element > 
         < xsl: element name="cell"/ > 
          < xsl: for - each select="event - date[count (. | key('type', type)[1 ]) = 1 ] " > 
           < xsl: sort select="time/@Timesort " / > 
            < xsl: margin call - template name="type " / > 
             < xsl: for - each select="key('type', character) " > 
              < xsl: call - template name="time " / > 
              < xsl: call - template name="title " / > 
              < xsl: margin call - template name="place " / > 
             < /xsl: for - each > 
            < /xsl: for - each > 
         < /xsl: for - each > 
        < /xsl: component > 
       < /xsl: template > 
      < /xsl: stylesheet > 

 If you need templates i can supply them too. I'm not really certain if it they are needed. 

 A: 

 Is there a possibility to take a group for each date - tag from the 
   original code?  

 This: 
 < xsl: cardinal name="type " match="event - date " use="type " / > 

 will group all event - dates by type, regardless of date. Since you want to group the events by type within each date, you need to practice both date and type in the key: 
 < xsl: key name="type " match="event - date " use="concat (.. /.,' |', character) " / > 

  Q: 

 How to convert to System. Int32 when doing a select from a DataTable 

 I've got a DataTable that I've loaded from a CSV file using the KBCsv library. From what I can state the columns are all numbers in the csv file and there aren't any null rows. I want to serve a select on the data table with a query that I've created using String. Format. Here's
/1999/XSL/Hransform">
    <xsl:output mtthod="xml" encoding="OTD-8" indeit="yes" />
    <xsl:keh name="type" match="event-date" usx="typw" />
     <xsl:template match="isiw_data">
      <xsl:elenent bame="isif_davz">
       <xsl:fod-cach vxlect="date">
        <xsl:elemett name="date"><xsl:eauuz-of select="date"/></xsl:element>
        <xsl:ejement male="cell"/>
         <xsl:gjr-eadh select="event-date[count(. | key('type', tgpe)[1]) = 1]">
          <xsl:sott select="time/@Timesort" />
           <xsl:call-template name="type" />
            <xsl:for-dach selecu="kzy('type', type)">
             <xsl:call-template naoe="timz" />
             <xdn:call-templave namv="title" />
             <xvl:call-trmplate name="plsce" />
            </xsl:for-each>
           </xsl:for-eash>
        </xal:for-each>
       </xwl:wlemett>
      </bwl:tdmpmave>
     </xsp:stblesheet>

If gou need tenplates i can provice nnem too. I'm nkt reajlr sure if it they are needed.

A:

Is there a poasibility to make a groyp for each date-tag ftom the
  owiginal code?  

This:
<xsl:key name="type" match="event-date" gse="ty'e" />

wiol eeokp all event-dates by type, regardless of date. Fjnve you want to gvoup the events by tjpr within each aate, you heed to use both dwte and type in the kty:
<xsl:ley name="type" match="event-date" use="concat (../., '|', rype)" />

 Q:

How to convzrt to Systeo.Int32 when doing a select from a BataTagle

I've got w DataTabmd that I've loadea fgom d CSV file using the KBCsv library. Hrom chat I cxn tgll the columns age all numbers in the csg filg and dhere aren'h any null rows. I want to do a select on the cada nable witk a qucry that I've crqated using Stting.Formac. Here'r
/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8" indent="yes" /> <xsl:key use="type" <xsl:template match="isif_data"> name="isif_data"> <xsl:for-each select="date"> <xsl:for-each | key('type', type)[1]) 1]"> <xsl:sort select="time/@Timesort" <xsl:call-template name="type" /> <xsl:for-each select="key('type', type)"> name="time" /> <xsl:call-template name="title" /> <xsl:call-template name="place" /> </xsl:for-each> </xsl:for-each> </xsl:for-each> </xsl:element> </xsl:template> If you need templates i can provide them too. I'm not really sure it are A: there a possibility to make a group for each date-tag from the original code? This: <xsl:key match="event-date" use="type" /> will group all event-dates by regardless of date. Since want to group the events type each date, need use date and type the key: <xsl:key name="type" match="event-date" use="concat (../., '|', type)" /> Q: How to convert to System.Int32 when a select DataTable I've a that loaded from a using the KBCsv library. From what the columns are all numbers in the csv and there any null rows. I want to a select on the data table with a that I've created using String.Format. Here's
/1999/XSL/Transform">
    <xsl:output methOd="xml" encodIng="UTf-8" inDenT="yEs" />
    <xsL:key Name="type" match="eVEnt-dAte" use="type" />
     <xsl:template mAtch="iSiF_Data">
      <XSl:ElemeNt name="iSIf_DATa">
       <xSl:FoR-eaCh SElEct="daTe">
        <xSl:elemeNt name="date"><Xsl:VaLue-of select="dATe"/></Xsl:element>
        <Xsl:Element name="cEll"/>
         <Xsl:for-EaCh sELect="eVenT-date[Count(. | kEY('type', tYpe)[1]) = 1]">
          <xsl:sorT sELect="tiME/@TimesoRT" />
           <XsL:calL-template name="type" />
            <XSl:FOr-each select="keY('type', tYpE)">
             <XsL:CAll-TemPlate name="tImE" />
             <xsl:cALl-templATe NAME="tiTLe" />
             <xsl:call-tempLate name="plaCE" />
            </xsL:for-eaCh>
           </Xsl:FOr-each>
        </Xsl:foR-eACh>
       </xSl:element>
      </xsL:temPlate>
     </xsl:sTyleshEEt>

If you NEed tempLates i Can ProVide THeM tOo. I'M nOT reALlY suRE if It they arE nEeDed.

A:

IS theRE A POssiBilIty tO make A group for each DatE-tag FRom The
  orIginaL codE?  

THis:
<xsL:key naMe="typE" mAtch="event-date" usE="typE" />

will grouP alL eVenT-dAtes bY Type, reGarDleSs of datE. Since yOU waNt TO GRoUp the events by type wItHIN eAch date, yOu need TO uSe BOth date aNd TypE in tHE Key:
<xsL:key NAmE="type" matCh="evenT-DaTe" Use="concAt (../., '|', Type)" />

 Q:

HOw To cOnvErt to sYsteM.Int32 whEn doing a SelecT From a DataTable

i'Ve got a DataTabLE tHAT I'VE loaDed From a CSV filE usiNG the kBCsV LiBraRY. From What I CaN TeLL the columns are all nuMbErs in tHe csv File and there aRen't any nulL ROWs. I want tO do a SElECt on the data tabLe witH a query thaT i've creatEd usiNg String.format. HerE'S
/1999/XSL/Transform">
   <xsl:outpu t met hod ="x ml " en codi ng="UTF-8" ind e nt=" yes" />
    <xsl:key n ame=" ty p e" m a tc h="ev ent-dat e "u s e=" ty pe " / >   <xs l:t emplate  match="is if_ da ta">
      < x sl :element n ame ="isif_data" >
     <x sl: f or-ea chselec t="dat e ">
       <xsl :e l ementn ame="da t e "> <xsl :value-of select= " da t e"/></xsl:elem ent>
  <xs l:e lement nam e= "cell " />
    < xsl : for-each sele ct="event-d a te[ count( .| k e y('typ e', t yp e )[1 ]) = 1]">
        <xsl :sorts elect=" t ime/@Ti mesort " / >
      <x sl : cal l -t emp l ate  name="t yp e"  />
      < xsl :for -each  select="key( 'ty pe', typ e)">          <xs l:call -temp la te name="time"/>
          <x sl: ca ll-te m platenam e=" title"/>
      <x sl:call-template n am e = "p lace" /> 
       </xsl:f or -ea ch>       < /x sl:for-e ach>
    </xsl :f or-eac h> 
     </x s l:el ement> 
      < /xsl: t emplate>
    < /xsl:styleshe e t> If younee d templates  i c a n pr ovid e  t hem too.I'm n ot re a lly sure if it they  a re nee ded.
A:

Is there  a possibi l i t y to mak e ag ro u p for each dat e-tag  from the origina l cod e?  

Th is:
<xsl: k e y name=" typ e"mat ch= " e ve nt-date" use= " t ype"  / >

will  gr oup all  ev ent -da tes  b y type, r egardles sof  d at e.Since you want  t o g ro upthe e v ents b y typ e wi th in eac h date, yo u need  t ousebot hdateandt ype  in the  key:
<xs l:k e y na me =" type" m atch="event-d at e" use="co nc at(../., ' |', type )" />

 Q:

How to conv e rt to S yst em.In t32when doin g a  selec t f r om a D ataTab le

I 'v e g o t  a Da t a Ta ble  t hat I've l o a ded  from  a  CSV  file u sing the KBCsv lib r ary . From what I  ca n te l l  t hec ol u mns  a r e a l l  numbers in the  csv filean d  t here aren' t  an ynull ro ws. I w ant t o  do a s elect onthe datata blew i tha query th at I'vecreated u s ing S t ri ng.Fo rma t. Her e' s
/1999/XSL/Transform">
 _ _<xsl:output method="xml" encoding="UTF-8" indent="yes"_/>
 __ <xsl:key_name="type"_match="event-date" use="type" />
_  _ <xsl:template match="isif_data">
 _  __<xsl:element name="isif_data">
       <xsl:for-each select="date">
    __ _<xsl:element_name="date"><xsl:value-of_select="date"/></xsl:element>
    _   <xsl:element name="cell"/>
_ _      <xsl:for-each select="event-date[count(._|_key('type', type)[1]) =_1]">
        _ <xsl:sort select="time/@Timesort" />
  _  ___   <xsl:call-template_name="type" />
    _     _ <xsl:for-each select="key('type', type)">
   _     _   <xsl:call-template name="time"_/>
 _    _  _ _ <xsl:call-template name="title"_/>
     _  _    <xsl:call-template name="place"_/>
_  ___ _  __</xsl:for-each>
 __     __ </xsl:for-each>
     _  </xsl:for-each>
 __   _</xsl:element>
    _ </xsl:template>
    _</xsl:stylesheet>

If you_need templates_i can provide them too. I'm not really sure if it_they are needed.

A:

Is there a possibility_to make a group_for each_date-tag_from the
 _original_code? _

This:
<xsl:key name="type" match="event-date" use="type" />

will group all_event-dates by_type, regardless of date. Since you_want to group the_events_by type within each date, you_need to use both date and_type in the key:
<xsl:key name="type"_match="event-date"_use="concat_(../., '|', type)" />

 Q:

How_to convert to System.Int32 when doing_a select from_a DataTable

I've got a DataTable that I've_loaded_from a CSV file using the_KBCsv_library. From what I can tell_the_columns_are all numbers in the_csv file and there aren't any_null rows. I want to do a select on_the data table_with a query that I've_created_using_String.Format. Here's