Read xml text between nodes
Posted on 2010-09-23
I'm writing xsl for existing xml file and I have problem with displaying node text.
What i have to do is to keep order of text values of child nodes. I explain it on following example:
I have xml file (a part)
now, I have to retain the order of values:
I wrote the following code but I cant put text properly.
Page <xsl:value-of select="@nr"/><br/>
<xsl:variable name="v_node" select="name()" />
<xsl:when test="$v_node = 'graph'">
<img><xsl:attribute name="src"><xsl:value-of select="path"/></xsl:attribute></img>
<xsl:when test="$v_node = 'br'">
The question is how to get text of "page_text" node partially to put it between images?
Can You help me solve the problem?
Thanks for all help