Am I right in thinking there's no way to mix and match <? xml-stylesheet ?> tags in an .xml file and AxAddProcessor directives in httpd.conf? My specific question is this: are all AxAddProcessor (and <AxAddStyle>) directives ignored once a file is determined to have its own stylesheet tags? I'm trying to put in a global (site-wide) named style for print formatting, and it's getting ignored since all of our pages have a specific tag, usually custom (generally the name of the page).

Hopefully that makes sense. The documentation makes it sound like the stylesheet chaining carries into the httpd.conf file if no suitable style is found, but it doesn't seem to for me. Here's the relevant pieces:

page.xml:
<?xml version="1.0"?>
<?xml-stylesheet href="NULL" type="application/x-xsp"?>
<?xml-stylesheet href="page.xsl" type="text/xsl" title="html" alternate="no"?>
<?xml-stylesheet href="/path/to/xml.xsl" type="text/xsl" title="xml" alternate="yes"?>
<!-- page here -->


httpd.conf:
<Directory /whatever/dir>
...
AxAddPlugin Apache::AxKit::StyleChooser::QueryString
<AxStyleName print>
AxAddProcessor text/xsl /path/to/print.xsl
</AxStyleName>
...
</Directory>

Any ideas why this doesn't work when I call page.xml?style=print? It works for style=xml. The reason for this change is that we have many pages, and it would be easier to add a style on this level rather than in each page's code... Am I screwed because the page has xml-stylesheet in it? Is there a way to selectively use AxIgnoreStylePI? That won't break all of our existing pages?

Thanks for any tips,
Nate



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to