Re: [xsl] Xinclude with Xalan 2.4

Subject: Re: [xsl] Xinclude with Xalan 2.4
From: Gregory Propf <gpropf@xxxxxxxxxx>
Date: Fri, 25 Apr 2003 21:12:59 -0400
Elliotte Rusty Harold wrote:
At 6:48 PM -0400 4/25/03, Gregory Propf wrote:

The funny thing is that if you use an external entity defined in a DTD xalan WILL do the include. It seems this would tend to be at the same level in the "stack" too. Unless a DTD is regarged as being part of XSLT. It was my understanding that DTD is an older system of XML schema specification. But I may be wrong. I am very new to the XML universe.


No, it's not really in the same layer of the stack. By my version of the XML stack <http://www.cafeconleche.org/books/effectivexml/chapters/15.html> Entities are resolved in the conversion from the syntax layer to the structure layer, whereas XInclude resolution and XSLT processing would take place on top of the structure layer, and may take place in either order as the local process dictates. That is, an XSLT stylesheet can be applied before or after XIncludes are resolved or both.

Ok, I looked at your link. But I see it like this - a stylesheet is applied to an XML document. If the document declares, in effect "I contain this other document here.xml" then it seems that it would be implied that anyone wishing to apply a stylesheet would, of necessity, have to first parse the xml and do the include of here.xml. Thus, I would think that XInclude should always precede any application of a stylesheet. I'm just thinking of it like a mathematical process. If y = sin(x) and someone tells me that x = 2a + b then it seems that you better redefine y as y = sin (2a + b).


--
"Firing people can give you a pretty good buzz, but it's a poor, poor substitute for killing. I realize that now" - Dale Gribble



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread