|
Subject: [xsl] Testing Text From: "Ganesh Babu N" <nbabuganesh@xxxxxxxxx> Date: Wed, 7 Jan 2009 16:48:58 +0530 |
Dear All,
I am writing a testing XSL which will check for the content in the XML file.
XML:
<article>
<fm>
<au>
<aff>testing @ test</aff>
</au>
<fm>
</article>
XSL:
<xsl:template match="*">
<xsl:if test="contains(.,'@')">@ found in <xsl:value-of
select="name(.)"/></xsl:if>
</xsl:template>
I am getting 4 errors with all the above elements. error at <article>,
error at <fm>, error at <au> and error at <aff>. But actually the
error is at <aff> only. How to get only one error message at <aff>
I have tried *[descendant::*][last()] in match attribute and other
ways but unable to get the result.
Regards,
Ganesh
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Implicit casting from dou, Mukul Gandhi | Thread | Re: [xsl] Testing Text, Mandar Jagtap |
| Re: [xsl] Implicit casting from dou, Mukul Gandhi | Date | Re: [xsl] Testing Text, Mandar Jagtap |
| Month |