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

Jurrie

Usenet Archive
Joined
Sep 30, 2003
Messages
10
Reaction score
0
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

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,224
Members
248,132
Latest member
henrywalsh

Latest Threads

Top