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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:59:12+00:00 2026-06-09T13:59:12+00:00

My problem is when i mix html elements in my xsl stylesheets, i am

  • 0

My problem is when i mix html elements in my xsl stylesheets, i am confused in what i am generating as the XML parses just complains:

Error on line 1 column 1 
  SXXP0003: Error reported by XML parser: Premature end of file.

Here’s my code

<xsl:template match="myTemplate">
    <xsl:variable name="fieldtype" select="Radio"/>

            &lt;td width="100px"&gt;&lt;span style="word-wrap: break-word"&gt;          
             <xsl:value-of select="$fieldtype"/>&lt;/span&gt;&lt;/td&gt;
</xsl:template>

Will this show up as

<td width="100px"><span style="word-wrap:break word">Radio</span></td>
  • 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-09T13:59:14+00:00Added an answer on June 9, 2026 at 1:59 pm

    I’m not sure why you’d need to encode the HTML. There’s nothing special about the HTML you’ve shown us that would prevent it from being parsed as valid XHTML.

    If for some reason you must encode the HTML, it might be safer to assign the attributes using xsl:attribute.

    <xsl:template match="myTemplate">
        <xsl:variable name="fieldtype" select="Radio"/>
        <td>
            <xsl:attribute name="width">
                <xsl:text>100px</xsl:text>
            </xsl:attribute>
            <span>
                <xsl:attribute name="style">
                    <xsl:text>word-wrap: break-word</xsl:text>
                </xsl:attribute>
                <xsl:value-of select="$fieldtype"/>
            </span>
        </td>
    </xsl:template>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having a problem with my animations flickering upon completion. I'm using a mix
i have the following xslt sheet: <?xml version=1.0 encoding=UTF-8 ?> <xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform version=1.0> <xsl:variable
The basic problem I'm trying to solve is that I have a mix of
I've just recently started learning HTML/CSS and I've been trying to teach myself sound
I'm a little confused as to why this isn't a more commonly addressed problem
When i mix .m and .cpp i have a problem with xcode not finding
Problem: Trying to create a Mix that is applied to the AVPlayerItem, but it
I'm doing a complicated hack in Python, it's a problem when you mix for+lambda+*args
I have a jsfiddle that demonstrates the problem at: http://jsfiddle.net/michaelajohnsonwa/sDchM/7/ The generated dropdown elements
My problem is a python/django mix. I have a form model that will display

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.