|
Subject: Re: [xsl] The identity transform and attributes From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Mon, 21 Jan 2008 19:01:11 +0100 |
select="child::foo selects the parent of the current node, match="child::foo" asks if that node is the child of anything.
So unless you find it surprising that something can both have a parent
and be a parent, I'm not sure what is surprising here?
<xsl:template match="/"> <xsl:apply-templates select="root"/> </xsl:template>
<xsl:template match="root">
<html> ...
<xsl:apply-templates select="books" />
</html><xsl:template match="books">
<h1>a lot of books</h1>
<xsl:apply-templates select="book" />
</xsl:template>Cheers, -- Abel Braaksma
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] The identity transform an, David Carlisle | Thread | Re: [xsl] The identity transform an, Andrew Welch |
| Re: [xsl] The identity transform an, David Carlisle | Date | Re: [xsl] The identity transform an, Andrew Welch |
| Month |