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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T15:36:47+00:00 2026-06-10T15:36:47+00:00

I feel so ashamed about this question, but I can’t find a solution, and

  • 0

I feel so ashamed about this question, but I can’t find a solution, and I hope you can help me.

This is my code xml:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="C:/Program%20Files/XML%20Copy%20Editor/esercizi%20xml/prova2.xsl"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
    <fileDesc>
        <titleStmt>
            <title></title>
        </titleStmt>
        <publicationStmt><p>AA</p></publicationStmt>
        <sourceDesc><p>AA</p></sourceDesc>
    </fileDesc>
</teiHeader>
    <text>
    <body><div>
    <head>Titolo</head>
        <p>Scriver&#242; un <rs>nome</rs> di luogo come questo:  <rs key="Persia" type="luogo">Persia</rs>.</p>
    </div></body>
    </text>
</TEI>

and this is what I wrote in my file xsl:

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

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns="http://www.w3.org/1999/xhtml" version="1.0">  
    <xsl:template match="/">  
        <back>
            <div>
               <xsl:value-of select="//rs"/>
            </div>
        </back>     
    </xsl:template>
</xsl:stylesheet>

The output is:

<?xml version="1.0" encoding="UTF-8"?>
<back xmlns="http://www.w3.org/1999/xhtml" xmlns:tei="http://www.tei-c.org/ns/1.0">
  <div/>
</back>

I don’t understand where is my error; I suppose it is in the namespace, but I can’t find the solution.

Thank you in advice!

  • 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-10T15:36:48+00:00Added an answer on June 10, 2026 at 3:36 pm
            <div> 
               <xsl:value-of select="//rs"/> 
            </div> 
    

    The expression in the “select” attribute tries to select any rs element that is in “no namespace” and there is none such — nothing is selected.

    You actually want:

            <div> 
               <xsl:value-of select="//tei:rs"/> 
            </div> 
    

    This in XSLT 1.0, however, outputs only the first selected rs element.

    If you want all of them, use something like this:

            <div> 
              <xsl:for-each select="//tei:rs">
               <p><xsl:value-of select="."/></p>
              </xsl:for-each> 
            </div> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I feel like I've read a question similar to this but I can't find
Ok, i feel so ashamed to ask this question, but I can't understand why
I feel like this is a really simple question, but I need help figuring
I feel like this should be an easy question, but I can't get it
I feel like this question has been asked many times, but the solution is
I feel like there's something about grids that I'm missing, but I can't find
(I feel like this must be a duplicate, but I can't find it). Consider:
I feel like this should have a simple answer, but I can't find it.
Feel silly asking this question, since this should be easy, but I can't figure
I feel a little stupid asking this question, but I hope that this might

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.