This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xslt question
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: xslt question
- From: "Chris Bayes" <Chris at Bayes dot co dot uk>
- Date: Fri, 28 Jul 2000 19:36:25 +0100
- Reply-To: xsl-list at mulberrytech dot com
Nearly there
>-----Original Message-----
>From: owner-xsl-list@mulberrytech.com
>[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of XSL User
>Sent: 28 July 2000 17:03
>To: xsl-list@mulberrytech.com
>Subject: xslt question
>
>
>I am trying to get the 5th table of the 1st table of the 3rd table
>ONLY from
>an HTML document. I've been trying various combinations for a
>couple of days
>now and it is frustrating?
>
>Can anyone help?
>
>What I have is as follows:
><?xml version="1.0"?>
><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>version="1.0">
>
><xsl:template match="html">
> <HTML>
> <xsl:apply-templates />
> </HTML>
></xsl:template>
>
><xsl:template match="head">
> <HEAD>
> <xsl:apply-templates />
> </HEAD>
></xsl:template>
>
><xsl:template match="meta[1]">
> <META NAME="PalmComputingPlatform" CONTENT="True" />
></xsl:template>
>
><xsl:template match="title">
> <TITLE>
> <xsl:value-of select="." />
> </TITLE>
></xsl:template>
>
><xsl:strip-space elements="*" />
>
><xsl:template match="body" >
><BODY>
> <xsl:apply-templates />
></BODY>
></xsl:template>
>
><xsl:template match="body//*">
></xsl:template>
>
><xsl:template match="table[3]/table[1]/table[5]">
><HR>
> <xsl:apply-templates />
></HR>
></xsl:template>
>
<!-- ignore all other tables -->
<xsl:template match="table">
</xsl:template>
<xsl:template match="tr | td">
<xsl:copy-of select="node()" />
</xsl:template>
>
><xsl:template
>match="//table[5]/*|//table[5]/@*|//table[5]/comment()|//table[5]/p
>rocessing-instruction()|//table[5]/text()">
> <xsl:copy>
> <xsl:apply-templates
>select="@*|*|comment()|processing-instruction()|text()"/>
> </xsl:copy>
></xsl:template>
>
></xsl:stylesheet>
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list