Hi, I have the following xml and I'm writing a XSLT to transform it:
<callop>
<con>unit</con>
<var>u</var>
<var>v</var>
</callop>
The problem is that if <callop>
is inside <is>
then it should be a <nano>
element and <con>
becomes <Fun>
but otherwise its an <Atom>
and <con>
becomes a <Rel>
.
How is this possible. Do I have to go and check what the parent node is? I appreciate some help.
Thanks