Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Tab (again i know... but it just doesnt work :( )

Reply
Thread Tools

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

 
 
Jurrie
Guest
Posts: n/a
 
      10-22-2003
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>&#x0009;</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>&#x0009;</xsl:text> somewhere, but if i run this
through Xalan-j and FOP, the <xsl:text>&#x0009;</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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can cycle through input with enter or tab but must use tab in i.e. Andrew Pollock Javascript 1 09-16-2009 08:28 PM
sort list doesnt work, key=str still doesnt work notnorwegian@yahoo.se Python 3 05-27-2008 04:32 AM
jsf core tag <f:param> doesnt work with <h:commandButton> but work with <h:commandLink> Janaka Perera Java 0 10-29-2007 08:10 PM
PC doesnt boot first time and doesnt shutdown dann Computer Support 6 08-21-2006 07:31 AM
When I open Internet Explorer, along with my home page a pop page pops up, I have changed home page but that doesnt work Phil Computer Support 7 03-04-2004 12:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57