Okay, this is the example i am working on:
<node_a>
<node_b>
<node_h variable="(#0,0)"/>
</node_b>
<node_c variables="(#0,0) ">
<node_d input-variable="($2,19)" output-variable="(#0,0)">
<node_c variables="($2,19) ">
<node_e output-variable="($2,19)">
<node_f>
<node_g value="section"/>
<node_f>
<node_g value="no"/>
<node_h variable="(no,14)"/>
</node_f>
<node_f>
<node_g value="title"/>
<node_h variable="(title,18)"/>
</node_f>
</node_f>
<node_c variables="(no,14) (title,18) ">
<node_i output-variable="(title,18)">
<node_k name="xf:string">
<node_h variable="($1,17)"/>
</node_k>
<node_c variables="(no,14) ($1,17) ">
<node_l input-variable="(section,13)" output-variable="($1,17)">
<node_m>
<node_n axis="child">
<node_o element-name="title"/>
</node_n></node_m>
<node_c variables="(no,14) (section,13) ">
<node_v output-variable="(no,14)">
<node_d input-variable="(#12,12)" output-variable="(section,13)">
<node_c variables="(#12,12) ">
<node_q>
<node_p variable="(#12,12)"
direction="document-ascending" type="normal"/>
<node_c variables="(#12,12) ">
<node_d input-variable="(#9,9)" output-variable="(#12,12)">
<node_u variables="(#9,9) ">
<node_c variables="(#5,5) ">
<node_l input-variable="(#4,4)" output-variable="(#5,5)">
<node_m>
<node_n axis="child">
</node_n>
</node_m>
<node_c variables="(#4,4) ">
<node_d input-variable="(#3,3)" output-variable="(#4,4)">
<node_c variables="(#3,3) ">
<node_l input-variable="(#2,2)"
output-variable="(#3,3)">
<node_m>
<node_n axis="descendantOrSelf">
<XqcAlgAnyKindTest/>
</node_n>
</node_m>
<node_c variables="(#2,2) ">
<node_i output-variable="(#2,2)">
<node_r>
<node_h variable="(#1,1)"/>
</node_r>
<node_to_search_1 collection="ino:etc"
output-variable="(#1,1)" count-only="false"/>
</node_i>
</node_c>
</node_l>
</node_c>
</node_d>
<node_o element-name="section" />
</node_c>
</node_l>
</node_c>
<node_c variables="(#9,9) ">
<node_s>
<node_t lower-bound="1" upper-bound="1"/>
<node_c variables="(#9,9) ">
<node_d input-variable="(#10,10)"
output-variable="(#9,9)">
<node_c variables="(#10,10) ">
<node_to_search_2 output-variable="(#10,10)">
<node_h variable="(#5,5)"/>
</node_to_search_2>
</node_c>
</node_d>
</node_c>
</node_s>
</node_c>
</node_u>
</node_d>
</node_c>
</node_q>
</node_c>
</node_d>
</node_v>
</node_c>
</node_l>
</node_c>
</node_i>
</node_c>
</node_e>
</node_c>
</node_d>
</node_c>
</node_a>
As output i want:
node_a
node_b
node_c
node_d
node_c
node_e
node_c
node_i
node_c
node_l
node_c
node_v
node_d
node_c
node_q
node_c
node_d
node_u
node_c
node_l
node_c
node_d
node_c
node_l
node_c
node_i
node_to_search_1
node_c
node_s
node_c
node_d
node_c
node_to_search_2
I hope this example is not to complicated to understand my problem now...
2008/9/29 Xmlizer <xmlizer+xsllist(_at_)gmail(_dot_)com>:
Well...a slight difference is that one is generating a newline at the
start of the result document and the other is not :-)
Xmlizer
On Mon, Sep 29, 2008 at 12:23 PM, Florent Georges
<lists(_at_)fgeorges(_dot_)org> wrote:
Andrew Welch wrote:
<xsl:template match="/">
<xsl:for-each select="//*">
<xsl:value-of select="concat('
',name())"/>
</xsl:for-each>
</xsl:template>
Which spells more clearly as:
<xsl:value-of select="//*/name(.)" separator="&_#10;"/>
;-),
--drkm
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--