![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XSLT and Rows of Data [Thread Next] Re: XSLT and Rows of DataTo: NULL Date: 8/3/2005 11:32:00 AM Hi, Yes it does. Its not entirely clear what piece you want from this but here are some XPaths for the different sections (assuming no namespaces). XPath: XmlNodeList allEmployees = xDoc.selectNodes("empl"); XmlNodeList allNames = xDoc.selectNodes("empl/emplName"); XSLT: <xsl:template match="/> <xsl:apply-templates /> </xsl:template> <xsl:template match="empl"> <xsl:text>Employee name :</xsl:text> <xsl:value-of select="emplName" /> <xsl:text> </xsl:text> <xsl:text>Employee ID :</xsl:text> <xsl:value-of select="emplId" /> <xsl:text> </xsl:text> <xsl:text>Employee Login Dt :</xsl:text> <xsl:value-of select="emplLogInDt" /> <xsl:text> </xsl:text> </xsl:template> Hope this helps, Marvin Smit. On 2 Aug 2005 07:50:39 -0700, "guevara_81@y..." <guevara_81@y...> wrote: <empl> <emplName>Doe, John</emplName> <emplId>1234</emplId> <emplLogInDt>01/01/2005</emplLoginDt> </empl> <empl> <emplName>Doe, John</emplName> <emplId>1234</emplId> <emplLogInDt>02/01/2005</emplLoginDt> </empl> <empl> <emplName>Doe, John</emplName> <emplId>1234</emplId> <emplLogInDt>03/01/2005</emplLoginDt> </empl> >I hope that helps. Thanks again. | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
