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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is possible to use 2 xslt files for 1 xml file?

Status
Not open for further replies.

jorgevlza

Programmer
Dec 17, 2002
1
MX
y need diferents ways to show the information of an xml file how can i change the xsl to another?

Thanks for your help!
 
Yes, you can... You can make use of the mode parameter of the <xsl:template> and of the <xsl:apply-templates>.

When mode is specified to the apply-templates, only those matching templates having that specific mode will be displayed. Thus, you can have two different outputs for the same elements, using 2 different XSL's.
I am not sure how you'd do this with two different xsl's, which were not written taking into consideration the above... [red]Nosferatu[/red]
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top