BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


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


XSLT
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
-xsl-fo-->-pdf--making-an-e-book/documentation.aspx>BIBLE PDF from (xml & xsl)-> xsl-fo -> pdf ; Making an E-book/documentation
Sum(round(.))
DISTINCT list of attributes using XPATH only
How to add a XSL information to the XML file with the XmlTextWriter?


 
 

<< XQuery.NET and XML >>


By John Workman
First Posted 05/24/2003
Times viewed 964

Cross Reference Lookup in XSLT using XML file as Xref table


This post contains attachments
v20030524111113.zip 

Summary This snippet shows you how to use an xml file as a xref table in the middle of transforming a separate xml document.

Have you every needed to use a cross reference table when transforming an xml document? This snippet shows you how. The example shows a payroll file that needs to have the payroll id replaced with the employee id. A JScript is included. If you double click on the JScript it will transform the document and create and output.xml file. It loads the xref document into a variable. Then it loops through the source document re-writing the xml file while replacing the payrollID with the employeeID. One thing to be careful of is make sure that you load the document into a variable outside of the loop and then search the variable instead of re-loading the file each time.

Additional information

Further additional information


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

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