Click here to Skip to main content
15,891,841 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralInner XML Pin
jithen_dt16-Apr-04 3:15
jithen_dt16-Apr-04 3:15 
GeneralRe: Inner XML Pin
Mike Ellison18-Apr-04 19:54
Mike Ellison18-Apr-04 19:54 
GeneralXML/XSLT/XML Schema questions Pin
rt280016-Apr-04 2:57
professionalrt280016-Apr-04 2:57 
GeneralXSLT over unknown XML(DTD) (XML to SQL INSERT(s)) Pin
Stoian Ivanov13-Apr-04 23:06
Stoian Ivanov13-Apr-04 23:06 
Generalxml file capacity Pin
karanba12-Apr-04 8:59
karanba12-Apr-04 8:59 
GeneralRe: xml file capacity Pin
Steven Campbell13-Apr-04 8:42
Steven Campbell13-Apr-04 8:42 
Generaltrying to write an XSL conditional statement Pin
feline_dracoform8-Apr-04 4:59
feline_dracoform8-Apr-04 4:59 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 3:57
Philip Fitzsimons14-Apr-04 3:57 
you have to do two things...

1) you have to interate of each specimen_item, either by using a for each, or using apply-template. (I would use apply-templates)
2) your test would be better using an element test...

so something like:

<br />
<br />
   <xsl:template match="/"><br />
      <xsl:apply-templates select="specimens" /><br />
   </xsl:template><br />
         <br />
   <xsl:template match="specimens"><br />
      <table><br />
         <tr><br />
            <td>Number</td><br />
            <td>Origin</td><br />
         </tr><br />
         <xsl:apply-templates select="specimen_item"/><br />
      </table><br />
   </xsl:template><br />
   <br />
   <xsl:template match="specimen_item"><br />
      <tr><br />
         <td><br />
            <xsl:value-of select="number"/><br />
         </td><br />
         <xsl:if test="origin"><br />
            <td><br />
               <xsl:value-of select="origin"/><br />
            </td><br />
         </xsl:if><br />
      </tr><br />
   </xsl:template><br />





"When the only tool you have is a hammer, a sore thumb you will have."

GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 4:52
feline_dracoform14-Apr-04 4:52 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 4:56
Philip Fitzsimons14-Apr-04 4:56 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 6:00
feline_dracoform14-Apr-04 6:00 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 6:03
Philip Fitzsimons14-Apr-04 6:03 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform14-Apr-04 6:38
feline_dracoform14-Apr-04 6:38 
GeneralRe: trying to write an XSL conditional statement Pin
Philip Fitzsimons14-Apr-04 22:45
Philip Fitzsimons14-Apr-04 22:45 
GeneralRe: trying to write an XSL conditional statement Pin
feline_dracoform15-Apr-04 0:19
feline_dracoform15-Apr-04 0:19 
QuestionXmlTextWriter / XmlDocument??? Pin
jmg57857-Apr-04 13:21
jmg57857-Apr-04 13:21 
GeneralCircular XSD and ADO DataSet Pin
Member 10037877-Apr-04 5:37
Member 10037877-Apr-04 5:37 
GeneralRe: Circular XSD and ADO DataSet Pin
Member 10037877-Apr-04 12:33
Member 10037877-Apr-04 12:33 
GeneralStructure not displayed by Data View Pin
Anonymous5-Apr-04 12:22
Anonymous5-Apr-04 12:22 
GeneralXSL Sorting Pin
afronaut1-Apr-04 4:40
afronaut1-Apr-04 4:40 
Generalget_Length Pin
rajprabha29-Mar-04 23:38
rajprabha29-Mar-04 23:38 
GeneralProblem Using Dll File in .Net Pin
naresh_pandey1326-Mar-04 21:20
naresh_pandey1326-Mar-04 21:20 
GeneralRe: Problem Using Dll File in .Net Pin
Heath Stewart26-Mar-04 21:45
protectorHeath Stewart26-Mar-04 21:45 
GeneralXml/A and Olap Pin
naresh_pandey1326-Mar-04 19:32
naresh_pandey1326-Mar-04 19:32 
Generalmsxml get element line / position Pin
Brian van der Beek25-Mar-04 3:06
Brian van der Beek25-Mar-04 3:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.