XSLT : Value-of select using date attribute -


currently trying pull data csv using value-of select command in xslt. totally new xslt , while trying read values, able string attribute date , number attribute not able to. please find below current code , related output. me how read date/number field csv. code:

<cas:label>hr data</cas:label>                       <cas:property>                     <cas:key>customerid</cas:key>                     <cas:value>                         <xsl:value-of select="a/string[position()=1]"/>                     </cas:value>                 </cas:property>                 <cas:property>                     <cas:key>reportingperiod</cas:key>                     <cas:value>                         <xsl:value-of select="a/string[position()=4]"/>                     </cas:value>                 </cas:property>                 <cas:property>                     <cas:key>leasecarstartdate</cas:key>                     <cas:value>                         <xsl:value-of select="a/date[position()=5]"/>                     </cas:value>                 </cas:property> 

output below:

<cas:label>hr data</cas:label>       <cas:property>          <cas:key>customerid</cas:key>          <cas:value>rd2</cas:value>       </cas:property> <cas:property>          <cas:key>reportingperiod</cas:key>          <cas:value>12-2016</cas:value>       </cas:property> <cas:property>          <cas:key>leasecarstartdate</cas:key>          <cas:value/>       </cas:property> 

need see input data.

it doesn't csv me.

note

select=a/date[position()=5]  

selects fifth date element, , suspect question there one.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -