Hello !
I'm french so please don't mind my poor english !
I have a xml structure which build a document made of title, blocs and paragraphs.
I manage to display my datas with an XSL file, but what I'd like to do now is shifting my paragraphs like this :
TITLE
Part 1
Part 1.1
paragraph
paragraph
Part 1.2
Part 2
Because I only manage to get
TITLE
Part 1
Part 1.1
paragraph
paragraph
Part 1.2
Part 2
My XSL page is looping over my document structure like this :
<xsl:for-each select="document//bloc">
<xsl:value-of select="titre"/><br/>
<xsl:for-each select=".[paragraphe]">
... and so on
What I think I should do is making a kind of function that takes the level of a title or a bloc, and puts " " ahead, but I have tried a JavaScript function and I can't have it working.
Can someone help me, please !!!
Thanks,
Gaelle.
I'm french so please don't mind my poor english !
I have a xml structure which build a document made of title, blocs and paragraphs.
I manage to display my datas with an XSL file, but what I'd like to do now is shifting my paragraphs like this :
TITLE
Part 1
Part 1.1
paragraph
paragraph
Part 1.2
Part 2
Because I only manage to get
TITLE
Part 1
Part 1.1
paragraph
paragraph
Part 1.2
Part 2
My XSL page is looping over my document structure like this :
<xsl:for-each select="document//bloc">
<xsl:value-of select="titre"/><br/>
<xsl:for-each select=".[paragraphe]">
... and so on
What I think I should do is making a kind of function that takes the level of a title or a bloc, and puts " " ahead, but I have tried a JavaScript function and I can't have it working.
Can someone help me, please !!!
Thanks,
Gaelle.