[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] How to code with relative context: "if the next node
[xsl] How to code with relative context: "if the next node is not empty then ....."
Subject: [xsl] How to code with relative context: "if the next node <ns3:ddd></ns3:ddd> is not empty then ....." From: "Ben Stover" <bxstover@xxxxxxxxxxx> Date: Thu, 05 Nov 2009 18:56:42 +0100 |
I would like to copy something to the target XML doc context (!) depending from the value of a node on the same level. It should all look similar to the following pseudo code: ...assume we are on level/inside <aaa><bbb><ccc> <xs:if <ddd>...</ddd> contains a non-whitespace value then> <mytext>yes value found<mytext> <xs:else> <myothertext>no value found</myothertext> </xs:if> ... </ccc>...</bbb>....</aaa> How can I code this with XSLT ? Again: If possible the condition should be context dependent. I don't want to code the full XPath /aaa/bbb/ccc/ddd in the "if" clause. Instead the XPath expression should be relative to the current position Thank you Ben
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to exclude namespaces, cert21 | Thread | Re: [xsl] How to code with relative, Martin Honnen |
Re: [xsl] Benefits of using xsl:key, Wendell Piez | Date | Re: [xsl] How to code with relative, Martin Honnen |
Month |