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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:15:01+00:00 2026-05-18T12:15:01+00:00

xsl:apply-templates select=.[nodeTest] mode=somemode fails with could not compile select expression . I’ve re-read Abbreviated

  • 0

xsl:apply-templates select=".[nodeTest]" mode="somemode" fails with could not compile select expression.

I’ve re-read “Abbreviated Syntax” chapter in the specification and still don’t understand if it’s an implementation bug or an appropriate behavior.

self::node[nodeTest] of course works well.

Is it somehow specified that shortened self axis shouldn’t work with predicate?

  • 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-18T12:15:02+00:00Added an answer on May 18, 2026 at 12:15 pm

    Is it somehow specified that shortened
    self axis shouldn’t work with
    predicate?

    Yes, this is determined by the grammar rules of XPath:

    [20]    FilterExpr    ::=    PrimaryExpr  
                                |  FilterExpr Predicate 
    
    
    [15]    PrimaryExpr    ::=    VariableReference  
                                  | '(' Expr ')'  
                                  | Literal  
                                  | Number  
                                  | FunctionCall 
    

    As can be seen from these, PrimaryExpr cannot be ..

    This syntactic omission was corrected in XPath 2.0, where the expression .[someCondition] is perfectly legal.

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

Sidebar

Related Questions

Below I'm trying to match certain nodes. <xsl:template match=nodes> <element> <xsl:apply-templates select=nodes mode=different />
<xsl:apply-templates mode=block2sequence select=NewDataSet/Table[CTD_CTD_PKG_ID =$PackageId][position()=1] and NewDataSet/Table[CTD_SEQ_NUM =$strXSLMsgType][position()=1]/> why cant i use two conditions in
I'm trying to order items based on an attribute value: <xsl:apply-templates select=Question> <xsl:sort order=ascending
I have the following template <h2>one</h2> <xsl:apply-templates select=one/> <h2>two</h2> <xsl:apply-templates select=two/> <h2>three</h2> <xsl:apply-templates select=three/>
<xsl:template match=o:CustomDocumentProperties> <xsl:copy> <xsl:apply-templates select =@*|node() /> </xsl:copy> </xsl:template> In word 2003, I am
How do I use apply-templates to select only those elements by name (not value)
Applying the standard XSLT copy template, <xsl:template match=@*|node()> <xsl:copy> <xsl:apply-templates select=@*|node()/> </xsl:copy> </xsl:template> to
I'm calling a template: <table> <xsl:apply-templates select=data/pics/row/> </table> The template is <xsl:template match=row> <tr>
I have the following XSLT macro (in Umbraco) <xsl:param name=currentPage/> <xsl:template match=/> <xsl:apply-templates select=$currentPage/imageList/multi-url-picker
I have seen this being used in this contect: <xsl:template match=node()|@*> <xsl:copy> <xsl:apply-templates select=node()|@*/>

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.