Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4103484
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:57:51+00:00 2026-05-20T20:57:51+00:00

All, I am attempting to place spaces/indent text in a column in my HTML

  • 0

All,

I am attempting to place spaces/indent text in a column in my HTML table. I am reading a XML file using XSLT 1.0 and writing it to a HTML file. I have tried the following:

<?xml version='1.0' encoding='utf-16'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="utf-16"/>

<tr>
  <td/>
  <td>
    <xsl:text xml:space="preserve">&#160;</xsl:text>
    <xsl:value-of select="concat('Substantiation-', 
                    @sourceID, ' (', current(), ')')"/>
  </td>
</tr>

The results when viewed in Internet Explorer (opened from the generated html file) looks like:

 Substantiation-9010 (p 1-5, Para 1-10.)

I have also tryed &#x9;, &#x20;, and &#xa0; it has similar or no results.

I am assuming that I have an encoding issue (thanks to Michael Kay for pointing that out), however I’m not sure what I’m doing wrong since I am specifing the encoding in the output tag. Does anyone know how to either add space/tab so it looks correct when viewed in IE?

Thank you for your help!!!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T20:57:52+00:00Added an answer on May 20, 2026 at 8:57 pm

    I couldn’t get the spaces to show up correctly. Everything suggested here from what I read should have worked. However, it wasn’t for me. I ended up using an image with a transparent background.

     <img src="OnePixel.gif" width="15" height="5" align="left"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to replace a pattern in all my .aspx and .ascx file when
I'm attempting to go through a simple text file with assembly instruction in it
I am attempting to select all a hrefs that do not have the class
I'm attempting to rewrite all all urls that are 4 exactly characters but allow
I am attempting to extract all instances of a particular format from a string:
I was attempting to store all the JMS object of the class Message recieved
I'm attempting to create a single Controller class to handle all foreseeable surveys that
I'm having all manner of trouble attempting to compile Adobe Source Libraries (ASL) on
I'm attempting to use the #define directive to change all of ulong to unsigned
I am attempting to develop an SQL field that is the sum of all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.