Hi David,

thanks for the answer. In fact, it was my fault, I made a mistake in
assigning the namespace not correctly - so it is working correctly now!

I have another question, but it is not a Xalan-related problem (so I hope I
am allowed to ask this question here...):
I have a stylesheet fragment looking like the following snippet:
<fo:block>Page:<fo:page-number/> of 
</fo:block>

After the word 'of' I would like to insert an additional element (by means
of a transforming stylesheet):
<fso:page-number-citation ref-id="last-page"/> (namespace prefix is set as
attribute of the stylesheet element)
in order to display the total number of pages. 

When I use the following template to do this job:
<xsl:template match="//*[local-name()='page-number']"
mode="addPageNumberingElement">
   <fso:page-number-citation>
      <xsl:attribute name="ref-id"><xsl:value-of
select="string('last-page')"/></xsl:attribute>
   </fso:page-number-citation>
</xsl:template>

the element <fso:page-number-citation> is set as a child element of the
<fo:page-number> element. I couldn't figure out how to iterate to the
textnode 'of' and insert an additional element after it.

Thanks again in advance,
Bettina Reck


> >In my transformation stylesheet I
> >use the following statement:
> >  <xsl:apply-templates select="xsl:[EMAIL PROTECTED]'/']/fo:root"> 
> >but this template seem to match no element.
> 
> Is the "fo" prefix set to the correct namespace in the stylesheet
> in which the above instruction appears? That would be the most
> likely source of the problem.
> .................David Marston
> 

-- 
Psssst! Mit GMX Handyrechnung senken: http://www.gmx.net/de/go/mail
100 FreeSMS/Monat (GMX TopMail), 50 (GMX ProMail), 10 (GMX FreeMail)

Reply via email to