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 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

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.