Subject: Re: [xsl] How do I check if an element exists with the same name From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 26 Mar 2001 10:14:58 +0100 |
> I fear the thing I want is not possible with XSL > ... > I'd like to let the 'input-field' template check if there's a > 'missing-field' with the same name. Is this possible and if so, how? <xsl:if test="caption=../../missing-inputfields/missing-field/@name"> > <xsl:apply-templates select="//missing-field[@name={name}]"> You should never use {} in an XPath expression (except as part of a string of course) > <td width=150> that is not well formed, attribute values must be quoted in XML. > <img src="./mark.gif> Neither is that. I assume that you hadn't actually run the example code posted. > Ps. Poster information: > Vendor: Microsoft > Processor version: Original IE5 (or old version of other processor) Oh just noticed that. WHY!!!! (the parenthetical expression is almost certainly false, the language built into IE5 had only passing similarity to XSL and wasn't implemented in any other processor as far as I know. Why can't you upgrade to MSXML3 which is now a supported microsoft product? The constructs that you showed in your example, such as xsl:param and attribute value templates ( ie the {} syntax) are part of XSLT and not in the-language-known-as-xsl-in-ie5 at all. David _____________________________________________________________________ This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. For further information visit http://www.star.net.uk/stats.asp XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How do I check if an elem, Jeni Tennison | Thread | Re: [xsl] How do I check if an elem, David Carlisle |
RE: [xsl] FW: cdata-section-element, Michael Kay | Date | Re: [xsl] How do I check if an elem, David Carlisle |
Month |