David Carlisle:
> >//text()[not(parent::title)]
>>
>> This is close :) however it fails to match the trailing close bracket ')'
>> for some reason.
>
>that matches any text node whose parent is not title.
>
>There are three text nodes in your example.
>the first has parent title
>the second has parent xref
>the third (which is just white space)
>All the text nodes in your example have parent title, so it
>does not match any of them.
<title>
Renew LP Piston Seal (Fig 5.5.1
<xref xrefid="F5.5.1" xidtype="FIGURE">) </xref>
</title>
Actually the trailing bracket has a parent <xref>, so Im now using
//text()[not(ancestor::title/ancestor::subpara1)]
(subpara1 distinguishes this title from several other <title>'s in the xml)
is this right?
Also, you are right this works fine
<xsl:template match="xref">
xref
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="title">
<p class="title">
<xsl:apply-templates/>
</p>
</xsl:template>
Thanks for all the help
cheers
andrew
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|