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

  • Home
  • SEARCH
  • 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 719353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:37:56+00:00 2026-05-14T05:37:56+00:00

The XML <?xml version=1.0 encoding=utf-8 ?> <data> <events /> <tour> <section id=3 handle=tour>Tour</section> <entry

  • 0

The XML

        <?xml version="1.0" encoding="utf-8" ?>
<data>
    <events />
    <tour>
        <section id="3" handle="tour">Tour</section>
        <entry id="15">
            <title handle="dummy-entry-1">Dummy Entry 1</title>
            <description mode="formatted">Lorem ipsum dolor sit amet...</description>
            <photo size="24 KB" path="/images/tour" type="image/jpeg">
                <filename>no-image.jpg</filename>
                <meta creation="2010-03-07T17:00:24-08:00" width="1000" height="1000" />
            </photo>
        </entry>
    </tour>
</data>

The XSLT

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="/data/tour/entry">
  <img src="{filename}"/>
  <h2>{heading}</h2>
  {description}
 </xsl:template>
</xsl:stylesheet>

Here is the code I am working with. I am a newbie to XSLT and I suppose I am not understanding how it transforms my XML into HTML entirely. This snippet of code I plan on loading via AJAX, so I really all I need it to output is a blank html document consisting only of these three items.

I realize I am omitting the xsl:output tag and that is because I really don’t understand how I can get this to just simply match that information to my tags in my xml without adding , tags etc. All it outputs is a string of text in an html document.

If it helps, I am working in the Symphony CMS environment.

  • 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-14T05:37:56+00:00Added an answer on May 14, 2026 at 5:37 am

    This ended up being the answer. I need to change the way I went about applying my templates. Not sure why it fixed it, but it did.

    <?xml version="1.0" encoding="UTF-8"?>
    

    <xsl:template match="/">
        <xsl:apply-templates select="data/tour-entry/entry" />
    </xsl:template>
    
    <xsl:template match="/data/tour-entry/entry">
        <img src="{$root}/image/2/675/300/5/images/tour/{photo/filename}" alt="" class="image" />
        <h2><xsl:value-of select="title"/></h2>
        <xsl:copy-of select="description"/>
        <script type="text/javascript">
            $(document).ready(function(){
                // How cufon applies our font to certain elements, styles based on css document.
                Cufon.replace('#content-main h2');
            });
        </script>   
    </xsl:template>
    

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

Sidebar

Ask A Question

Stats

  • Questions 499k
  • Answers 499k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well, DoSomethingWithCollection should accept two parameters - 1) ICollection/IEnumerable that… May 16, 2026 at 12:32 pm
  • Editorial Team
    Editorial Team added an answer CakePHP boot (index.php) is only invoked when Apache can't find… May 16, 2026 at 12:32 pm
  • Editorial Team
    Editorial Team added an answer Microsoft answered this here: this was purposely changed to more… May 16, 2026 at 12:32 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

i'm developing an application that is listening to tcp to get some xml data
I am using JSON to parse data and connect to a PHP file. I
I've got an XML Doc loaded in. I've created an Horizontal List and referenced
[Bindable]public var headingData1:Object = new Object(); <mx:HTTPService id=srv url=components.xml resultFormat=object result=getHeadings(event);/> private function getHeadings(evt:ResultEvent):void{
Can anyone see whats wrong with either the code to grab the XML or
I am currently writing an application that needs to pull data from an XHTML
Can some one tell me why am I getting the following data in return
i would like to load xml into dataset with only 2 columns (name, price)
I have an XSLT transform I am using to process an XML file, inserting
Right so I have a simple app that consists of a calendar a Set

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.