Omnimaga

General Discussion => Technology and Development => Computer Programming => Topic started by: Sorunome on April 17, 2013, 12:01:13 am

Title: [XSL] include not working
Post by: Sorunome on April 17, 2013, 12:01:13 am
Hey, XSL include doesn't seem to work over here....here's my code (yes, i am modding the icecast xsl files):
index.xsl
http://pastebin.com/48u1CzMf

header.xsl
http://pastebin.com/hH7RDNkU

Thanks for any help in advance :D
Title: Re: [XSL] include not working
Post by: Deep Toaster on April 17, 2013, 07:57:56 pm
<xsl:include href="header.xsl" /> in index.xsl should be directly under the xsl:stylesheet node, not the xsl:template node.
Title: Re: [XSL] include not working
Post by: Sorunome on April 17, 2013, 08:35:30 pm
still not working D:
Title: Re: [XSL] include not working
Post by: Sorunome on April 18, 2013, 10:41:13 pm
Ok, i think there is some other problem in my xsl, so there is another problem now: I have two template elements but it onnly outputs the result of my second template element.....both are defined by <xsl:template match = "/icestats" >
Title: Re: [XSL] include not working
Post by: Sorunome on April 20, 2013, 09:10:26 pm
So, I resolved all my problems now, this website helped me out a lot: http://homepages.ius.edu/RWISMAN/n341/html/xslInclude.htm