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!

Using the XSLT <xsl:Include> element

Status
Not open for further replies.

lbrooks

IS-IT--Management
Jan 20, 2004
42
US
I have an XSLT and XML document. I have transformed the XSLT and XML document into HTML on the server using ASP. I am using the <xsl:include> element within my XSLT. I am trying to figure out if the include is executed before the data is sent to the client? The reason for my question is that I here that the element <xsl:include> only works with clients using IE6.
 
>I am trying to figure out if the include is executed before the data is sent to the client?
I would guess so... hence I'm not sure if I miss something.

>The reason for my question is that I here that the element <xsl:include> only works with clients using IE6.
Two aspects. If we are talking about using browser as a parser of the document, I would be surprised nn7/6 & ff1.0+ have difficulty in taking xsl:include element. Fans of moz would be upset to hear that and would tend to believe the reverse. If the transformation takes place server-side, why would it matter of what browser client is using except the cross-browser issues of the end-result of the transformation? So I must conclude I do not understand the problem...
 
I did not mean to say that it only works with IE6. I meant to say that if transformation hsppened on the client, that prior version of IE would not be able to render an XSLT page with the <xsl:include>. Is this correct?

Thanks
 
The <xsl:include> instruction is 'actioned' by the XSLT processor just like any other instruction. Since <xsl:include> must be a top level element, it most likely is actually processed before most of the other instructions. Given your description in the original post, the <xsl:include> is processed on the server, and the client will never see it.

What exactly are you experiencing (as opposed to what you hear)?

Tom Morrison
 
To supplement what said, if you are worrying backward compatible on ie, loosely speaking, it would not be reasonable to expect anything before ie5.x to support xml technology.From ie5.x on, there can be a lot to expect.
 
Ok. Thanks to everyone. Yes I was mainly concerned with backward compatibility and I should have explained that better. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top