Friday, February 2, 2018

Using template instead of variable and copy in xslt

Om




Wednesday, January 31, 2018

Adding Parameters in xml dynamically using parametres and validation

Om



  ivybat__Market_ISO__c
  GL
 
 
    
      
    

 

 
    
        
         
            
         

    

 

Monday, January 29, 2018

XSLT : fetech by parent and slibling nodes values

XSLT : fetch records by comparing parent and sibling nodes. 

In Most of time,
         we use select operation in xslt, to fetch data from source, some times, we need to do filter based on parent, sibling tag values comparison.

below two are very useful for xml rows fetch.











Saturday, January 27, 2018

Example of union in XSLT

Om


xslt : parent node and child node value compare

Om


XSLT compare child and deep level elements with example

Om



Thursday, January 25, 2018

XSLT basics : SAP PI PO and HCI

om

















ExpressionRefers to
book[last()]The last  element of the current context node.
book/author[last()]The last  child of each  element of the current context node.
(book/author)[last()]The last  element from the entire set of  children of  elements of the current context node.
book[excerpt]All  elements that contain at least one  element child.
book[excerpt]/titleAll </font><font class="font8"> elements that are children of </font><font class="font7"><book></font><font class="font8"> elements that also contain at least one </font><font class="font7"><excerpt></font><font class="font8">element child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book[excerpt]/author[degree]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><degree></font><font class="font8"> element child, and that are children of </font><font class="font7"><book></font><font class="font8">elements that also contain at least one </font><font class="font7"><excerpt></font><font class="font8"> element.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book[author/degree]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><book></font><font class="font8"> elements that contain </font><font class="font7"><author></font><font class="font8"> children that in turn contain at least one </font><font class="font7"><degree></font><font class="font8"> child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[degree][award]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><degree></font><font class="font8"> element child and at least one </font><font class="font7"><award></font><font class="font8"> element child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[degree and award]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><degree></font><font class="font8"> element child and at least one </font><font class="font7"><award></font><font class="font8"> element child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[(degree or award) and publication]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><degree></font><font class="font8"> or </font><font class="font7"><award></font><font class="font8"> and at least one </font><font class="font7"><publication></font><font class="font8"> as the children</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[degree and not(publication)]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><degree></font><font class="font8"> element child and that contain no </font><font class="font7"><publication></font><font class="font8"> element children.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[not(degree or award) and publication]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><publication></font><font class="font8"> element child and contain neither </font><font class="font7"><degree></font><font class="font8"> nor </font><font class="font7"><award></font><font class="font8"> element children.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[last-name = 'Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain at least one </font><font class="font7"><last-name></font><font class="font8"> element child with the value </font><font class="font7">Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[last-name[1] = 'Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements where the first </font><font class="font7"><last-name></font><font class="font8"> child element has the value </font><font class="font7">Bob</font><font class="font8">. Note that this is equivalent to the expression in the next row.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[last-name [position()=1]= 'Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements where the first </font><font class="font7"><last-name></font><font class="font8"> child element has the value </font><font class="font7">Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">degree[@from != 'Harvard']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <degree> elements where the from attribute is not equal to 'Harvard'.</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[. = 'Matthew Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements whose value is </font><font class="font7">Matthew Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[last-name = 'Bob' and ../price > 50]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that contain a </font><font class="font7"><last-name></font><font class="font8"> child element whose value is </font><font class="font7">Bob</font><font class="font8">, and a </font><font class="font7"><price></font><font class="font8">sibling element whose value is greater than 50.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book[position() <= 3]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The first three books (1, 2, 3).</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[not(last-name = 'Bob')]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that do no contain </font><font class="font7"><last-name></font><font class="font8"> child elements with the value </font><font class="font7">Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[first-name = 'Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that have at least one </font><font class="font7"><first-name></font><font class="font8"> child with the value </font><font class="font7">Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[* = 'Bob']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">all author elements containing any child element whose value is <font class="font7">Bob</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[last-name = 'Bob' and first-name = 'Joe']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font7"><author></font><font class="font8"> elements that has a </font><font class="font7"><last-name></font><font class="font8"> child element with the value </font><font class="font7">Bob</font><font class="font8"> and a </font><font class="font7"><first-name></font><font class="font8"> child element with the value </font><font class="font7">Joe</font><font class="font8">.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">price[@intl = 'Canada']</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <price> elements in the context node which have an intl attribute equal to 'Canada'.</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">degree[position() < 3]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The first two <font class="font7"><degree></font><font class="font8"> elements that are children of the context node.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">p/text()[2]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The second text node in each <font class="font7"><p> </font><font class="font8"> element in the context node.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">ancestor::book[1]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The nearest <font class="font7"><book></font><font class="font8"> ancestor of the context node.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">ancestor::book[author][1]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The nearest <font class="font7"><book></font><font class="font8"> ancestor of the context node and this </font><font class="font7"><book></font><font class="font8"> element has an </font><font class="font7"><author></font><font class="font8"> element as its child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">ancestor::author[parent::book][1]</td><td class="xl67" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The nearest <font class="font7"><author></font><font class="font8"> ancestor in the current context and this </font><font class="font7"><author></font><font class="font8"> element is a child of a </font><font class="font7"><book></font><font class="font8">element.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" style="height: 18pt; border-top: none; width: 195pt;">./author</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><author></font><font class="font5"> elements within the current context. Note that this is equivalent to the expression in the next row.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><author></font><font class="font5"> elements within the current context.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">first.name</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><first.name></font><font class="font5"> elements within the current context.  ppp</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">/bookstore</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The document element (<font class="font6"><bookstore></font><font class="font5">) of this document.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">//author</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><author></font><font class="font5"> elements in the document.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book[/bookstore/@specialty=@style]</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><book></font><font class="font5"> elements whose </font><font class="font6">style</font><font class="font5"> attribute value is equal to the </font><font class="font6">specialty</font><font class="font5"> attribute value of the </font><font class="font6"><bookstore></font><font class="font5"> element at the root of the document.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author/first-name</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><first-name></font><font class="font5"> elements that are children of an </font><font class="font6"><author></font><font class="font5"> element.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">bookstore//title</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><title></font><font class="font5"> elements one or more levels deep in the </font><font class="font6"><bookstore></font><font class="font5"> element (arbitrary descendants). Note that this is different from the expression in the next row.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">bookstore/*/title</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><title></font><font class="font5"> elements that are grandchildren of </font><font class="font6"><bookstore></font><font class="font5"> elements.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">bookstore//book/excerpt//emph</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><emph></font><font class="font5"> elements anywhere inside </font><font class="font6"><excerpt></font><font class="font5"> children of </font><font class="font6"><book></font><font class="font5"> elements, anywhere inside the </font><font class="font6"><bookstore></font><font class="font5"> element.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">.//title</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><title></font><font class="font5"> elements one or more levels deep in the current context. Note that this situation is essentially the only one in which the period notation is required.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author/*</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All elements that are the children of <font class="font6"><author></font><font class="font5"> elements.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book/*/last-name</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><last-name></font><font class="font5"> elements that are grandchildren of </font><font class="font6"><book></font><font class="font5"> elements.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">*/*</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All grandchildren elements of the current context.</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">*[@specialty]</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All elements with the <font class="font6">specialty</font><font class="font5"> attribute.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">@style</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The <font class="font6">style</font><font class="font5"> attribute of the current context.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">price/@exchange</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The <font class="font6">exchange</font><font class="font5"> attribute on </font><font class="font6"><price></font><font class="font5"> elements within the current context.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">price/@exchange/total</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">Returns an empty node set, because attributes do not contain element children. This expression is allowed by the XML Path Language (XPath) grammar, but is not strictly valid.</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book[@style]</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><book></font><font class="font5"> elements with </font><font class="font6">style</font><font class="font5"> attributes, of the current context.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">book/@style</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The <font class="font6">style</font><font class="font5"> attribute for all </font><font class="font6"><book></font><font class="font5"> elements of the current context.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">@*</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All attributes of the current element context.</td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">./first-name</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><first-name></font><font class="font5"> elements in the current context node. Note that this is equivalent to the expression in the next row.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">first-name</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All <font class="font6"><first-name></font><font class="font5"> elements in the current context node.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[1]</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The first <font class="font6"><author></font><font class="font5"> element in the current context node.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">author[first-name][3]</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The third <font class="font6"><author></font><font class="font5"> element that has a </font><font class="font6"><first-name></font><font class="font5"> child.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">my:book</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">The <font class="font6"><book></font><font class="font5"> element from the </font><font class="font6">my</font><font class="font5"> namespace.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">my:*</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All elements from the <font class="font6">my</font><font class="font5"> namespace.</font></td></tr> <tr height="24" style="height: 18pt;"><td height="24" class="xl66" width="260" data-th=" Expression " style="height: 18pt; border-top: none; width: 195pt; min-width: 80px;">@my:*</td><td class="xl66" width="738" data-th=" Refers to " style="border-top: none; border-left: none; width: 554pt; min-width: 80px;">All attributes from the <font class="font6">my</font><font class="font5"> namespace (this does not include unqualified attributes on elements from the </font><font class="font6">my</font><font class="font5"> namespace).</font></td></tr> </tbody></table> <div class="MsoNormal" data-blogger-escaped-style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0cm;" style="line-height: normal; margin-bottom: 0.0001pt; margin-bottom: 0cm;"> <br></div> </div> </div>