Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apply XSL templates based on root node value 1

Status
Not open for further replies.

barguast2

Programmer
Oct 31, 2008
3
GB
How can I apply a template based on the value of the root node? For example, if the root node 'ABC', apply one template, but if the root node is 'CDE', apply a different template.

Thanks.
 
Not much differnt from the previous thread.
Just use some specific templates for different "mode" corresponding to different local-name of the root, set by xsl:param targetroot or directly hard-scripted to the template matching "/*".

What have you worked with my post in the said thread? or your instructor has asked you a different question by now?
 
I came looking for my last thread and couldn't find it, and so assumed it hadn't submitted properly and posted again. Sorry about that!

Anyway, thanks a lot. Your reply really helped a lot. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top