Subject: Re: [xsl] Avoiding selection of UNREQUESTED elements? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 28 Jun 2001 12:24:53 +0100 |
Hello
can anyone help me with a simple problem, i think!!
The problem i have is that i cant access 1 distict record, without pulling out data from nodes that are NOT required. I am sure it is something to do with the contextual node?? however cant work it out!!!
Here's the xsl file.
<xsl:template match="clientlog/customer">
<xsl:value-of select="@customerid[.='bloggs']"/> <xsl:value-of select="//logitem/@logid"/> <xsl:value-of select="logitem/date"/> <xsl:value-of select="logitem/message"/> <xsl:value-of select="logitem/contact/@contactname"/> </xsl:template> </xsl:stylesheet>
<xsl:template match="/"> <!-- matches the root --> <xsl:apply-templates select="//clientlog/customer"/> <!-- reaches "into" the tree and selects only the nodes you want --> </xsl:template>
Good luck, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Avoiding selection of UNREQUE, Simon Knee | Thread | [xsl] count all the following nodes, Jayaranga Subasinghe |
RE: [xsl] Displaying document( ) ou, Wendell Piez | Date | RE: [xsl] count all the following n, Wendell Piez |
Month |