J
jszczepankiewicz
Witam,
mam nastepujacy problem:
XSLT 2.0,
Hi,
i've got following problem with xslt 2:
my xml doc looks something linke:
<manual>
<chapter id="intro-some" title="some title23l>
<header id="intro-some-header" title="some titleser3 2">
<part id="jakisid12" title="jakistitle2435">
...
</part>
<part id="jakisid3343" title="jakistitle2345">
...
</part>
</header>
</chapter>
jest dowolna liczba headerow i chapterow, part jest opcjonalny.
there are chapters (non-optional), headers (in chapters) (non-
optional) and parts (in chapters) (optional)
When i'm transforming to html when i create snippet about header,
chapter or part im presenting something like:
"1. title of chapter one" (for chapters), "1.2. title of header
two" (for header two in chapter one), "1.2.4 title of part four" (for
part number four in header number two in chapter number one"
Im using following code (i.e. for part numeration):
<xsl:number level="multiple" count="chapter|header|part"
format="1.1.1 " />
And xml is auto numbering my chapters, headers and parts.
With anything that I wrote for now there are no problems. But i have
new requirement for my xsl transformation.
In my xml inside chapter or header or part i can insert element:
<linkLeech href="jakisIDdoChapterLubHeaderLubPart"/>
which should be replaces (in target document i.e. html) to:
<a href="xxx">1.2.3 title of target part</a> (if href is referring
part by id)
or
<a href="xxx">1.2 title of target header </a> (if href is referring
header by id)
or
<a href="xxx">1. title of target chapter</a> (if href is referring
chapter by id)
And i have a problem: I can read the title of target element(chapter,
header, part) but I can not determine which number should I insert
before title ot target element. At this time I can not determine the
position of target element reffered to other elements (in context-
node)
I hope my description was clear ehough, i will by pleased if someone
with bigger experience than me could help me with this problem, thanks
for all kind of help.
mam nastepujacy problem:
XSLT 2.0,
Hi,
i've got following problem with xslt 2:
my xml doc looks something linke:
<manual>
<chapter id="intro-some" title="some title23l>
<header id="intro-some-header" title="some titleser3 2">
<part id="jakisid12" title="jakistitle2435">
...
</part>
<part id="jakisid3343" title="jakistitle2345">
...
</part>
</header>
</chapter>
jest dowolna liczba headerow i chapterow, part jest opcjonalny.
there are chapters (non-optional), headers (in chapters) (non-
optional) and parts (in chapters) (optional)
When i'm transforming to html when i create snippet about header,
chapter or part im presenting something like:
"1. title of chapter one" (for chapters), "1.2. title of header
two" (for header two in chapter one), "1.2.4 title of part four" (for
part number four in header number two in chapter number one"
Im using following code (i.e. for part numeration):
<xsl:number level="multiple" count="chapter|header|part"
format="1.1.1 " />
And xml is auto numbering my chapters, headers and parts.
With anything that I wrote for now there are no problems. But i have
new requirement for my xsl transformation.
In my xml inside chapter or header or part i can insert element:
<linkLeech href="jakisIDdoChapterLubHeaderLubPart"/>
which should be replaces (in target document i.e. html) to:
<a href="xxx">1.2.3 title of target part</a> (if href is referring
part by id)
or
<a href="xxx">1.2 title of target header </a> (if href is referring
header by id)
or
<a href="xxx">1. title of target chapter</a> (if href is referring
chapter by id)
And i have a problem: I can read the title of target element(chapter,
header, part) but I can not determine which number should I insert
before title ot target element. At this time I can not determine the
position of target element reffered to other elements (in context-
node)
I hope my description was clear ehough, i will by pleased if someone
with bigger experience than me could help me with this problem, thanks
for all kind of help.