xsl-list
[Top] [All Lists]

in this xsl , why dont get result with substring-before ..

2005-03-25 06:37:52
Problem number 1)i have this two files. when i try to
get with substring-before or substring-after i get no
data
Problem number 2) 
why i get in this for-each loop only one
time the content of workstep1 node 
Problem number 3) 
what is the other alternativity to call a template
in this loop instead of to use xsl:apply-templates ? 
thanks


<?xml version='1.0'?> 
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";> 
<xsl:output method="html"/> 
<xsl:template match="/Job">
<html><head><META http-equiv="Content-Type"
content="text/html; charset=iso-8859-1"/>

</head><body>

<table>
<tr> 
   <td></td>    <td> <b>JOB Desc. </b></td></tr> 

<xsl:for-each select="Jobsdetails"> 
<tr> 
   <td></td>
       <td>  <xsl:value-of
select="jobDescription"/></td>
       
 </tr>

<xsl:apply-templates select="worksPart1"/>
</xsl:for-each>
</table></body></html>

</xsl:template>


<xsl:template match="worksPart1" >
<tr> <td></td>
   <td>
    <xsl:if test="contains(bbb,'RRR')">
    <xsl:value-of
select="substring-before('bbb','RRR')"/>
    +<xsl:value-of
select="substring-after('bbb','RRR')"/>
    </xsl:if>
       </td>    
       
 </tr>

</xsl:template>
</xsl:stylesheet>


------------------------------------------
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="test.xsl"?>
<Job>


<Jobsdetails>
<jobDescription>mydescription</jobDescription>
<worksPart1>

<bbb>beforeRRRafter</bbb>
<worksNr>20362</worksNr>

</worksPart1>
</Jobsdetails>
</Job>




        

        
                
___________________________________________________________ 
Gesendet von Yahoo! Mail - Jetzt mit 250MB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>