| 
 
Subject: Re: [xsl] Copy Child Elements From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Sat, 26 Jan 2008 12:57:57 +0100  | 
Hi,
There is one obvious problem with your XSL here:
If you are using apply-templates, what it does is that it would select any of the children of the template root. Use <xsl:apply-templates select="section"> and and <xsl:apply-templates select="//section">
Quoting Rick Quatro <frameexpert@xxxxxxxxxxxx>:
<xsl:template match="reference"> <xsl:apply-templates select="//section">
<xsl:template match="section"> <xsl:for-each select="p[position()<=2]">
<xsl:template match="p[id='Field_ShowAuthorJobTitle']>
   <dt>
       <xsl:copy-of select="text() | *" />
   </dt>
</xsl:template><xsl:template match="p[id='Desc_ShowAuthorJobTitle']>
   <dd>
       <xsl:copy-of select="text() | *" />
   </dd>
</xsl:template><!-- throw away other <p> elements --> <xsl:template match="p" />
HTH, Cheers, -- Abel Braaksma
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Copy Child Elements, Wei, Alice J. | Thread | Re: [xsl] Copy Child Elements, Rick Quatro | 
| RE: [xsl] Copy Child Elements, Wei, Alice J. | Date | Re: [xsl] Copy Child Elements, Rick Quatro | 
| Month |