Hello All, I am having an issue with the order in which transformations are being added to the processing chain. It is my understanding from the docs and from chapter 4 of the AxKit O'Reilly book that "style processors are prepended to the processing chain as you descend into the directory hierarchy". The key word there is "prepended". The book and docs seem to say that transformations deeper in the hierarchy should happen before the more generic ones closer to or at the root.
This is the functionality that I want, but it is not what I am getting. In my case, it seems that the transformations that are deeper down the hierarchy are being processed before the root transformations. Whenever I retrieve /sub_dir/sub_sub_dir/minimal.xml, I get the following: <root>sub_sub_dir Base Content...doc_root.xsl processed....sub_dir.xsl processed....sub_sub_dir.xsl processed.</root> It seems to me that the transformations are being appended to the chain as you descend into the directory instead of being prepended to it. Am I missing something? Is this in fact the intended functionality and I'm just reading it wrong? Any help would be much appreciated. I am running the following versions: Apache/1.3.24 AxKit/1.6 mod_perl/1.26 I am including the code for the test transformations and my httpd.conf: doc_root.xsl ------------------------------------------------- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...doc_root.xsl processed.</root> </xsl:template> </xsl:stylesheet> ------------------------------------------------- sub_dir.xsl ------------------------------------------------- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...sub_dir.xsl processed.</root> </xsl:template> </xsl:stylesheet> ------------------------------------------------- sub_sub_dir.xsl ------------------------------------------------- <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...sub_sub_dir.xsl processed.</root> </xsl:template> </xsl:stylesheet> ------------------------------------------------- minimal.xml ------------------------------------------------- <?xml version="1.0"?> <root>doc_root Base Content</root> ------------------------------------------------- httpd.conf ------------------------------------------------- ServerType standalone Port 55555 ServerRoot $SERVERROOT DocumentRoot $SERVERROOT/docs TypesConfig /usr/local/apache/conf/mime.types PerlModule AxKit AxDebugLevel 10 AxLogDeclines On #AxTraceIntermediate On AddHandler axkit .xml AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT <Location /> AxAddProcessor text/xsl /styles/doc_root.xsl </Location> <Location /sub_dir/> AxAddProcessor text/xsl /styles/sub_dir.xsl </Location> <Location /sub_dir/sub_sub_dir/> AxAddProcessor text/xsl /styles/sub_sub_dir.xsl </Location> -------------------------------------------------
<?xml version="1.0"?> <root>doc_root Base Content</root>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...doc_root.xsl processed.</root> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...sub_sub_dir.xsl processed.</root> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <root><xsl:value-of select="/*"/>...sub_dir.xsl processed.</root> </xsl:template> </xsl:stylesheet>
<?xml version="1.0"?> <root>sub_sub_dir Base Content</root>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
