1st thing I would do is get rid of the transhandler concept, just maintain a symlink from *.html to *.xml, now you don't have to translate any URLs at all...
Now you have no need for pnotes hacks etc :o). I would also use symlinks to solve the other problem, simply have EVERY *.html have a corresponding *.xsl, which if you don't want anything else is a symlink to default.xsl. Symlinks are your friend! This only leaves the issue of naming stylesheets *.xsl. I guess you'll need to write yourself a stylechooser for that, but I would bend a critical eye to my processor chain design and see if I couldn't avoid needing a special stylesheet for each page (like at least maybe you could have 1 stylesheet and have that include different things with document() if needed). On Tuesday 16 September 2003 01:01 pm, Arne Claassen wrote: > I'm trying to create a behavior and tried with both with a > PerlTransHandler and PerlTypeHandler without success, so i figured, I'd > ask for help. > > Basically, xml/xslt output on my system generates html, so here's what > i'm trying to do: > > 1) *.html gets translated to *.xml (can do that in the URI phase) > 2) *.xml won't have a stylesheet, so direct access to *.xml just > returns raw XML (lovely for debugging, especially with the XML > modes of mozilla and IE) > 3) If it comes in at *.html, check for *.xsl and attach that as > stylesheet, otherwise check for default.xsl and attach that as > stylesheet. This also has to happen in the URI phase since post > that i don't know that it came in as *.html. That part i can't get > to happen > > Any suggestion, or is there already a facility similar to this behavior > i should instead exploit? > > arne > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Tod Harter Giant Electronic Brain http://www.giantelectronicbrain.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
