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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:40:33+00:00 2026-06-08T04:40:33+00:00

Please explain to me how to include a plain html inside an XSL template

  • 0

Please explain to me how to include a plain html inside an XSL template

<xsl:choose>
<xsl:when test="position() = last()">
<xsl:text><tr><td colspan='10'>bla bla.</td></tr></xsl:text></xsl:when>
</xsl:choose>

Error: ‘tr’ cannot be a child of the ‘xsl:text’ element.

Thanks !

  • 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-08T04:40:36+00:00Added an answer on June 8, 2026 at 4:40 am

    Simply remove the <xsl:text> tags:

    <xsl:choose>
    <xsl:when test="position() = last()">
      <tr><td colspan="10">bla bla.</td></tr>
    </xsl:when>
    </xsl:choose>
    

    An <xsl:text> element means “insert text here”. Therefore, its content must only consist of text nodes. You can, however, simply write out the text; the following two lines are equivalent:

    <xsl:text>foo bar</xsl:text>
    foo bar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please explain why the following pieces of code behave differently. #include<stdio.h> int main(){ float
#include <stdio.h> void main() { int x=5,y=6; printf(%d%d%d,x++,(y=x++),(x=y++)); } Can anyone please explain why
Could someone please explain to me on when should one use the include and
Could anyone please explain what the following line in my xsd mean ? <xsd:include
Please Explain the following code #include <iostream> using namespace std; int main() { const
Please explain what is the purpose of this line in CMakeLists.txt: include (InstallRequiredSystemLibraries) I
can anyone please explain this code? #include <avr/io.h> #include <avr/interrupt.h> #include <avr/signal.h> char n
Could anyone please explain why this code compiles : #include <stdio.h> #include <string.h> int
Could someone please explain to me whats wrong with this code? #include<stdio.h> struct A{
Can some1 please explain how can i include this installations in my CAB file.

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.