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

  • Home
  • SEARCH
  • 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 8581005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:56:50+00:00 2026-06-11T20:56:50+00:00

I have found this site which says that I can pick a specific node

  • 0

I have found this site which says that I can pick a specific node of this code

<xsl:variable name="in-xml" as="item()*"> <in-xml>
     <a>1</a>
     <c>2</c>
     <a>3</a>
     <a>4</a>
     <a>5</a>    </in-xml> </xsl:variable>

It says that if you wrote this:

$in-xml/*[position() > 2]

you would get this:

<a>3</a>
<a>4</a>
<a>5</a>

but it seems not to be working for me.
Here is the site: http://www.xsltfunctions.com/xsl/fn_position.html

Can anyone give the code to get that???

  • 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-11T20:56:51+00:00Added an answer on June 11, 2026 at 8:56 pm

    In XSLT 1.0, XPath expressions can only be performed on input data, not on data created in the course of evaluating the stylesheet. So one way to make your example work would be to move the in-xml data to an external document and load it using the document() function. There are also some tricky / clever techniques that involve writing the in-xml element as a child of xsl:stylesheet and using document('')/xsl:stylesheet/in-xml to declare the variable; these techniques work with good XSLT 1.0 implementations but fail in some browser implementations.

    In XSLT 2.0, the constraint on the use of XPath was relaxed and something along the lines you sketch should work.

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

Sidebar

Related Questions

I have found this line of MatLab code on the internet that displays a
I have found this line of code in a game that I study int
I have found this question in the one site which was about counting sort
I have found this project on Codeplex. http://www.codeplex.com/ProjNET I need to integrate this code
I have found this code for reverse geocoding: var point = new GLatLng (lat[1],long[1]);
I have found this macro while digging in the source code of tweejump game.
I have found this question; Can I move a Flash object within the DOM
I have found this piece of code in the Haskell sendfile package: http://patch-tag.com/r/mae/sendfile/snapshot/current/content/pretty/src/Network/Socket/SendFile/Linux.hsc --
I have found this web site really helpful since everybody helps here with the
Im building a site which opens Youtube videos onsite using Shadowbox. I have found

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.