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 8129609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:22:28+00:00 2026-06-06T08:22:28+00:00

I was trying to layout some debug information for my reading in html using

  • 0

I was trying to layout some debug information for my reading in html using xslt… but it happened that everythin is being put on only one line!? Trying to figure out what is wrong I minimized the problem to this:

my xlst that can be applied to any dummy xml file:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html><body><p>These<br/>words<br/>aren't<br/>seperated<br/>by<br/>BRs</body></html></xsl:template></xsl:stylesheet

And contrary to what I expected, everything is on only one line without brs. Any obvious error that I am doing ?

Is it possible it is due to Internet Explorer 9.

  • 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-06-06T08:22:29+00:00Added an answer on June 6, 2026 at 8:22 am

    Use XHTML as the default namespace to apply the default stylesheet to the p and br tags:

    <?xml version="1.0" encoding="utf-8"?>
    <?xml-stylesheet type="text/xsl" href="html5.xml"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns="http://www.w3.org/1999/xhtml"
                    >
    <xsl:output method="xml" encoding="utf-8" version="" indent="yes" standalone="no" media-type="text/html" omit-xml-declaration="no" doctype-system="about:legacy-compat" />
    
    <xsl:template match="xsl:stylesheet">
      <xsl:apply-templates/>
    </xsl:template>
    
    <xsl:template match="/">
      <html>
        <head>
          <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
        </head>
        <body>
          These<br/>words<br/>are<br/>seperated<br/>by<br/>BRs
        </body>
      </html>
    </xsl:template>
    
    </xsl:stylesheet>
    

    This self-contained stylesheet works when saved as html5.xml.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying first time WPF user. I read through some WPF layout docs but am
I'm trying to put some buttons at the bottom of my linear layout. The
I'm trying to create a website with fluid layout, but im having some problems
I'm trying to reuse some layout components in android application using <include> tag. I've
i'm trying to create a flow layout and i'm having some trouble using float:left
Hi I'm trying to build a layout where some shapes will popup every 2
I'm trying to reproduce the layout of some paper forms in a WPF application.
I am trying to add some views programatically to a linear layout which is
I am having some serious issues trying to tweak my layout in a table.
I am trying append some XML retrieved via a dojo.XHRGet to a dijit.layout.ContentPane .

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.