A
Alois Treindl
A simple XSL question from a newbie:
In an xml document which I transform via xsl into html output, I have
some text which I want to be suppressed.
The tags looks like this
<anchor_ref name="#B4">I. Introduction - page 4 </anchor_ref>
<anchor_ref name="#B4">II. Childhood - page 24 </anchor_ref>
<anchor_ref name="#B4">I. Later - page 42 </anchor_ref>
I want to define an xsl rule which gets rid of the page numbers which
make no sense in the html version.
I.e. anything fitting the pattern ' - page NN '
where NN is a single or double digit number should be replaced by nothing.
How would this XSL rule look?
A later complication will be that the word 'page' can also appear in
other languages, e.g. 'Seite 4', 'pagina 4' etc.
In an xml document which I transform via xsl into html output, I have
some text which I want to be suppressed.
The tags looks like this
<anchor_ref name="#B4">I. Introduction - page 4 </anchor_ref>
<anchor_ref name="#B4">II. Childhood - page 24 </anchor_ref>
<anchor_ref name="#B4">I. Later - page 42 </anchor_ref>
I want to define an xsl rule which gets rid of the page numbers which
make no sense in the html version.
I.e. anything fitting the pattern ' - page NN '
where NN is a single or double digit number should be replaced by nothing.
How would this XSL rule look?
A later complication will be that the word 'page' can also appear in
other languages, e.g. 'Seite 4', 'pagina 4' etc.