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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:39:14+00:00 2026-06-03T03:39:14+00:00

I have a XML file with code like <?xml version=1.0 encoding=UTF-8?> <?xml-stylesheet href=rss2.xsl type=text/xsl

  • 0

I have a XML file with code like

 <?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="rss2.xsl" type="text/xsl" media="screen"?> <rss version="2.0">   <channel>
        <title>TITLE</title>
        <description>Description</description>
        <link>
        some link
        </link>
        <copyright>Copyrights 2012, All Rights Reserved</copyright>
        <item>
        <title> title 1</title>
        <description> desc</description>
        <link>
        some link
        </link>
        </item>   </channel> </rss>

And an XSL file for this is

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />

<xsl:template match="/">
  <html>
  <head>
    <title>XML RSS Feed</title>
    <link type="text/css" rel="stylesheet" href="rss_xsl.css" >
  </head>
  <body>
  <h2>XML RSS Feed</h2>
  <hr />

    <div id="content">
      <xsl:for-each select="rss/channel/item">
      <div class="article">
        <h3><a href="{link}" rel="bookmark"><xsl:value-of select="title"/></a></h3>
        <p><xsl:value-of select="description"/></p>
      </div>
      </xsl:for-each>
    </div>


</body>
</html>
</xsl:template>
</xsl:stylesheet> 

The issue is when i comment the stylesheet code then chrome shows the feed. when i include the style the feeds are no more visible. How can this stop showing the feeds. is their some thing wrong with this inclusion of Style for XSL files..

  • 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-03T03:39:16+00:00Added an answer on June 3, 2026 at 3:39 am

    Well the stylesheet markup is not well-formed, due to <link type="text/css" rel="stylesheet" href="rss_xsl.css" > which should be <link type="text/css" rel="stylesheet" href="rss_xsl.css"/>. Then I think the approach works when loading over HTTP. If you load the XML document from the file system then I think Chrome refuses to load the the stylesheet linked to, for security reasons. There might be command line options or settings to change the behavior.

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

Sidebar

Related Questions

I have xml file like this <?xml version=1.0 encoding=UTF-8?> <specification xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance xsi:noNamespaceSchemaLocation=file://Desktop/normal.xsd> <university> <refstr>bdvl_te_skrm_stc</refstr>
Basically I have an XML file that looks like this: <?xml version=1.0 encoding=UTF-8?> <data>
I have a XML File like that <?xml version=1.0 encoding=utf-8 ?> <Configurations> <EmailConfiguration> <userName>xxxx</userName>
I have a XML file like this : <?xml version=1.0 encoding=UTF-8 standalone=no ?> <user>
i have an xml file which contain some data like: <?xml version=1.0 encoding=utf-8 ?>
I have an XML file formatted like this: <?xml version=1.0 encoding=utf-8?> <Snippets> <Snippet name=abc>
I have an XML file which looks like this : <?xml version=1.0 encoding=UTF-8?> <resultset
I have the following XML file: <xml version=1.0 encoding=utf-8?> <Data> <Parameter1>1</Parameter1> </Data> I want
I have something like this (sorry for the bad names) <?xml version=1.0 encoding=utf-8 ?>
I have an XML file of the following structure: <?xml version=1.0 encoding=utf-8?> <root> <ArrayOfLocationDTO

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.