ProcessingInstructionTest

Check for processing instruction nodes.

Top of page

Related Syntax Constructs

The following construct(s) refer to this construct:


Syntax

ProcessingInstructionTest

graphics/ProcessingInstructionTest.png

StringLiteral

Description

A ProcessingInstructionTest is one of a number of node tests that are used in a step expression. The expression processing-instruction() is true for any processing instructions. You can also specify a string literal that must be equal to the value of the target application for the test to succeed.

Examples

  • Select all processing instructions in the current collection:

    input()//processing-instruction()
                
  • Select all processing instructions that use the target application "xm-replace_text":

    input()//processing-instruction("xm-replace_text")