[Mod_transform] want to transform xml output from module

Edward Rudd urkle at outoforder.cc
Sat Aug 27 16:46:35 EST 2005

On Thu, 2005-08-25 at 21:07, Jeffrey Clark wrote:
> [snip[

> I have one last question: How do I access an xsl stylesheet that is in
> the root html directory from an xml file that is in a subdirectory? 
> For example:

I actually do a relative path on in the outoforder.cc xml files (the
third method you have down below). And that works for me.  You also may
want to try enabling the TransformOptions +ApacheFS and use a /foo.xsl

> Let's say my apache docroot is /usr/local/apache/html.  So I have an
> xml file and an xsl stylesheet:
> /usr/local/apache/html/foo.xsl
> /usr/local/apache/html/bar/baz.xml
> I've tried three different methods in the baz.xml file:
> <?xml-stylesheet type="text/xsl" href="foo.xsl"?>
> <?xml-stylesheet type="text/xsl" href="/foo.xsl"?>
> <?xml-stylesheet type="text/xsl" href="../foo.xsl"?>

> The third method doesn't give an internal server error, but it doesn't
> render the page to html either.  It just spits out the raw xml data. 
> What am I doing wrong?

> -Jeff

Edward Rudd <urkle at outoforder.cc>
Website http://www.outoforder.cc/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.outoforder.cc/pipermail/mod_transform/attachments/20050827/051c2c41/attachment.bin

More information about the Mod_transform mailing list