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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T21:44:55+00:00 2026-06-13T21:44:55+00:00

So a while back I asked a question here about matching a child of

  • 0

So a while back I asked a question here about matching a child of level “file” that has a parent of level “file”. The solution was as follows:

 <xsl:template match="*[@level='file' ]/*[@level='file']"> 

This worked at the time, but I now realize I need to match beyond a second level. So in addition to matching this:

 <c01 level="file">
   <c02 level="file"></c02>
 </c01>

I further need to match this and beyond:

<c01 level="file">
  <c02 level="file">
     <c03 level="file"></c03>
  </c02>
</c01>

In short, is there a way to match ANY node in the document of level “file” that has a direct parent of level “file” no matter the depth? I need this to specify indentation in an xsl-fo document. I really just need my stylesheet to continue indenting children further than their parents.

I hope this make a modicum of sense. 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-13T21:44:56+00:00Added an answer on June 13, 2026 at 9:44 pm
    //*[@level="file" and ../*[@level="file"]]
    

    This XPath expression matches any node with level="file" whose parent also has level="file". Is it what you need?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A while back, I asked a question on here about how to run an
I noticed that a while back a question was asked about personal preferences in
I asked a question a while back on here regarding caching data for a
So I asked a question a while back about securing downloads using C# (
I asked a similar question here a while back but all the answers were
A while back I asked a question about TransactionScope escalating to MSDTC when I
Similar to what I asked in this question a while back about getting the
I asked a question a while back about how to get the current variable
I asked a question here a while back on how to hide my http
A while back I asked a question revolving around how to copy a 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.