S
ShakyMobo
<line><c n="H7">Drinkin' all </c><c n="E">night</c><c n="E7">We got in to a
</c><c n="A">fight</c></line>
XPath: substring(/line/c[position()=1], 3, 7)
Is it possible to refer to the textelement that contains the value of the
substring in XSLT? In this case the firstchild of the first "c" element.
I'm doing this in Java, and my clumsy solution was to take out the string
"/line/c[position()=1]" and find the firstchild of the returned node.
I need to split up the textelement in order to insert a new element inside
the textelement, and that's why i need to point at the textelement.
Arnstein
</c><c n="A">fight</c></line>
XPath: substring(/line/c[position()=1], 3, 7)
Is it possible to refer to the textelement that contains the value of the
substring in XSLT? In this case the firstchild of the first "c" element.
I'm doing this in Java, and my clumsy solution was to take out the string
"/line/c[position()=1]" and find the firstchild of the returned node.
I need to split up the textelement in order to insert a new element inside
the textelement, and that's why i need to point at the textelement.
Arnstein