BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
Basic Shapes to Paths with TinyLine
XML to CSV using XSLT
Cross-Browser display of XML/XSL
Cross Reference Lookup in XSLT using XML file as Xref table
Recursion reminds me of Recursion (9 XSLT Recursion examples)
XSLT Sort - output entire xml file with new sort order
Variable Variables
Cross Reference Lookup in XSLT using embedded XML
XTrans 1.0
XML Explorer 2.5
Create an N-Column Table from XML node-set
XSLT Select Option Example
XSLT Date filtering, sorting, comparing, and evaluating
XSLT Template for HTML INPUT Tag
XSLT Template for HTML IMG Tag
XSLT Search and Replace Template
Word wrap and text replace templates for XSLT
nxslt 1.3
Visual XPath
xframe - xsddoc


 
 

<< XQuery.NET and XML >>


By sundararaman s a
First Posted 04/30/2003
Times viewed 947

Preceding-subling XSL


Summary What will happen if we try to access the preceding-sibling in a ?

I have the following XML File: group 1 item one item two item three item four group 2 item one item two item three I would like to know the preceding-sibling of each item and I want to process the item based on the preceding-sibling. I can't use preceding::sibling inside or though, following::sibling will work fine in that case. Solution might be to check for the last() node in case of preceding::sibling. I have given the XSL code snippet below.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (3 votes, average 5)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML