If your included stylesheet makes use of the entity, you'll need to have the DOCTYPE in that file as well, otherwise you don't.
As Lesley points out, you just need to actually call the template you're including.
The order of inclusion only matters if you're including templates that match the same elements as an already existing template in the master stylesheet - in this case, the template defined (or included) last in the stylesheet "wins".
thankyou all so much for your help. I just tried adding a doctype and call template and its still not doing anything here is what I have now look and see if there is anything else I'm doing wrong with this please.
Okay I got it working now thanks for the help. The major problem was the source code needed to transform the XML file to XHTML. The one I was using for some reason would not do includes but now im using a different one and it works perfectly.
xsl include feature
I've been reading everything that comes up on google about this feature but still simply cannot get it to work correctly. So here is my xsl
here is header.xsl
My thought is do I need to include the doctype in the one being included?or maybe not!
please help me thanks to all!
That looks correct, perhaps try moving the include to the bottom of the file though?
Also, for more info on includes and examples check out Chriztian's blog post on them.
It looks to me like you're missing something to output your page_header template contents. So you could add
...inside your main template.
Hi Dalton,
If your included stylesheet makes use of the entity, you'll need to have the DOCTYPE in that file as well, otherwise you don't.
As Lesley points out, you just need to actually call the template you're including.
The order of inclusion only matters if you're including templates that match the same elements as an already existing template in the master stylesheet - in this case, the template defined (or included) last in the stylesheet "wins".
/Chriztian
thankyou all so much for your help. I just tried adding a doctype and call template and its still not doing anything here is what I have now look and see if there is anything else I'm doing wrong with this please.
header.xsl
main template.xsl
Okay I got it working now thanks for the help. The major problem was the source code needed to transform the XML file to XHTML. The one I was using for some reason would not do includes but now im using a different one and it works perfectly.
is working on a reply...