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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:11:51+00:00 2026-05-24T03:11:51+00:00

I have a few child nodes that repeat. How do I create an internal

  • 0

I have a few child nodes that repeat. How do I create an internal DTD namespace to make f1 and f2 use #PCDATA?

<xsl:for-each select="a/b/c/d/e[1]/f">
        <tr>
          <td><xsl:value-of select="f1"></td>       
          <td><xsl:value-of select="f2">/td> 
          <td>
</xsl:for-each>
<xsl:for-each select="a/b/c/d/e[2]/f">
        <tr>
          <td><xsl:value-of select="f1"></td>       
          <td><xsl:value-of select="f2">/td> 
          <td>
</xsl:for-each>

XML:

<a>
<b>
<c>
<d>
<e section="1">
<f>
<f1></f1><f2></f2>
</f>
</e>
<e section="2">
<f>
<f1></f1><f2></f2>
</f>
</e>
</d>
</c>
</b>
</a>

How do I create an internal DTD namespace to make f1 and f2 use #PCDATA?

  • 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-24T03:11:52+00:00Added an answer on May 24, 2026 at 3:11 am

    Appropriate DTD:

    <!DOCTYPE a [
    
        <!ELEMENT a (b)>
        <!ELEMENT b (c)>
        <!ELEMENT c (d)>
        <!ELEMENT d (e*)>
        <!ELEMENT e (f)>
        <!ELEMENT f (f1, f2)>
        <!ELEMENT f1 (#PCDATA)>
        <!ELEMENT f2 (#PCDATA)>
    
        <!ATTLIST e section CDATA #REQUIRED>
    
    ]>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows service(C#), that sprawns few child native processes (C++). I'd like
I have few question in this regard When you create an internet page, does
In almost all of my projects I have few files that are project wide
I have a Entity Framework design with a few tables that define a graph.
Hey there, I have read the few posts here on when/how to use the
I have a few panels that I slide horizontally using the animate function that
Usually when parsing XML i have to create all those lists with nodes, childs
I have a few child templates which have extraheads which include the jquery script.
I have a parent package and a few child and grandchildren packages: #parent package
I am using C#, EF and SQL Server and have few tables with parent-child

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.