Boolean operators "and" and "or" can be used in any boolean checks (and intersection )
<xsl:value-of select=“employee[organization=‘Oracle’ and University=‘BITS’]/name ”>
not(boolean exprsn) negates any boolean expression.
Node Set Functions
position( ) function returns the current node's position in the context node list as a number
last( ) function returns the number of nodes in the context node set, which is the same as the position of the last node in the set
The count( ) function returns the number of nodes in its node set argument (rather than in the context node list)
Get all <movieTitle> elements
Get the synopsis of movie“ Elf ”
Title of the movies published after 2000
Which movies have a synopsis?
Which movies do not have a synopsis?
What is the title of the last movie of the document?
Get the Title of movies that have two Lead Actors
Get the roleIDREF of the Supporting Actor in Elf movie
Get the first name of the Lead Actor of Elf ?<Hint: above answer can be used(in a variable)>
Get the role of Ben Stiller in movie Meet the Parents<Hint: use ‘and’ condition>
Location Paths Contd..
/AAA/BBB/descendant::* Select all descendants of /AAA/BBB <AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD/> </CCC> </AAA>
Location Paths contd..
The ancestor axis contains the ancestors of the context node; the ancestors of the context node consist of the parent of context node and the parent's parent and so on; thus, the ancestor axis will always include the root node, unless the context node is the root node.
/AAA/BBB/DDD/CCC/EEE/ancestor::* Select all elements given in this absolute path <AAA> <BBB> <DDD> <CCC> <DDD/> <EEE/> </CCC> </DDD> </BBB> <CCC> <DDD> <EEE> </EEE> </DDD> </CCC> </AAA>
Location Paths contd..
/AAA/BBB/following-sibling::* The following-sibling axis contains all the following siblings of the context node.
//ZZZ/following::* The following axis contains all nodes in the same document as the context node that are after the context node in document order, excluding any descendants and excluding attribute nodes and namespace nodes. . <AAA> <BBB> <ZZZ> <DDD/> </ZZZ> <FFF> <GGG/> </FFF> </BBB> <XXX> <FFF/> </XXX> </AAA>
The ancestor, descendant, following, preceding and self axes partition a document (ignoring attribute and namespace nodes): they do not overlap and together they contain all the nodes in the document.