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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:42:37+00:00 2026-05-11T22:42:37+00:00

On my web site I have XMLs with my page contents (automatically generated from

  • 0

On my web site I have XMLs with my page contents (automatically generated from my DB) – which are displayed using XSLT. The problem is this: I’d like to have some formatting within some of the XML tags. For instance, if I have an XML containing an article in a
format like this:

<article>
  <header>Cool article</header>
  <author>Me!</author>
  <content>
    This is an article. It's <b>HUGE</b>, and here's a <a href="http://Www.foo.com">link</a>.
  </content>
</article>

However, if I simply get the contents using this: <xsl:value-of select="content" /> all the HTML formatting is ignored/lost. I guess it’s mistaken for XML child nodes, and not actual data residing in the content node.

What’s the preferred way of achieving formatting like what described here?

Thanks in advance.

  • 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-11T22:42:38+00:00Added an answer on May 11, 2026 at 10:42 pm

    I think your problem is this:

     <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
              media-type="application/html+xml" encoding="utf-8" omit-xml-declaration="yes" indent="no"/>
    

    make sure your output is of type html,

    application/html
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web site in asp.net that uses a master page. In this
I have a web site which I download 2-3 MB of raw data from
I have a web site using apache httpd as the server and mysql as
I have an ASP.Net 2.0 web site, using the DotNetNuke framework (4.09), and it
i am autpmating a web site that have different function page. i am making
I have a web site which will be featured in a place which will
I have inherited a web site that has all of the paths set using
I have a web site running via IIS7 on Vista. The site is running
I have a web site that is a customer to customer (C2C) service. Example,
I have a web site that I administer that uses Apache 2.0 on the

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.