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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:18:27+00:00 2026-05-25T23:18:27+00:00

I transform some RSS XML feeds using XSLT. Basically there are two types I

  • 0

I transform some RSS XML feeds using XSLT. Basically there are two types I edit :

1. <rss><channel>some tags about the RSS<item></item></channel></rss>
2. <feed>some tags about the RSS<entry></entry></feed>

using this stylesheet. (It gets some files from a paths.xml file)

<xsl:stylesheet version="1.0" xmlns:f="http://www.w3.org/2005/Atom" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/*">
    <NEWrss>
        <xsl:for-each select="file">
            <xsl:apply-templates 
                select="document(.)/*//channel | document(.)/f:feed/f:entry">
                <xsl:with-param name="file" select="."/>
            </xsl:apply-templates>
        </xsl:for-each>
    </NEWrss>
</xsl:template>

On the first RSS I get correctly the output with the tags between <channel> and first <item>. Those are some tags that contain info about the blog, like the title.

However, on the second, those tags (title of the blog… found between the <feed> and first <entry>) are gone after the transformation. The tags in appeared correctly.

My question is how can I get those tags too ?

A sample Feed like the 2nd structure is http://feeds.feedburner.com/EFENPRESS-

Thank you.

  • 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-25T23:18:27+00:00Added an answer on May 25, 2026 at 11:18 pm

    I think what you’re saying is you don’t see the text preceding the f:feed element. That’s because your select statement doesn’t include it – it only selects f:feed/f:entry and channel elements. Maybe you should try processing f:feed instead of f:feed/f:entry? or f:feed/node(), which will select both f:feed/text() and f:feed()/f:entry.

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

Sidebar

Related Questions

I'm using the javax.xml.transform.Transformer class to perform some XSLT translations, like so: TransformerFactory factory
I'm trying to transform some XML into HTML using XSLT . Problem: I can't
I am using XSLT to transform some provisioning XML into a SOAP request. But
I’ve been trying to transform some simple XML into another simple XML using XSLT.
I'm using XSLT 1.0 to transform some XML. I'm not quite sure the best
There must be a generic way to transform some hierachical XML such as: <element1
I am using XSL transform on XML. Some part of transform are dependent on
I'm trying to transform some XML-data to HTML with XSLT for my bachelor thesis.
I'm using an XsltCompiledTransform to transform some XML into a fragment of HTML (not
I want to transform some xml using an xsl-file and output the result somehow

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.