Tab (again i know... but it just doesnt work :( )

J

Jurrie

Hi all,

I have a problem with printing a tab. In my XML document i have
paragraph elements, that may have a <TAB /> element like this:

<paragraph stylesheet="Body_List">-<TAB />Avoid repetitive and time
consuming actions</paragraph>

To output the text i use the following:

<xsl:value-of select="text()" />
<xsl:apply-templates select="TAB" />

then i have a template that looks like this:

<xsl:template match="TAB">
<xsl:text> </xsl:text>
<xsl:value-of select="substring-after(..,substring(..,1,1))" /> <!--
make sure the '-' is not printed again -->
</xsl:template>

I searched these messages to look how i should output a tab, and i
found <xsl:text> </xsl:text> somewhere, but if i run this
through Xalan-j and FOP, the <xsl:text> </xsl:text> gets
replaced by a normal space.
Am i making a mistake here? or is it a bug, or is this normal
behaviour according to the standard?

Thanks for any help,
Jurrie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,906
Latest member
SkinfixSkintag

Latest Threads

Top