You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ryan <ni...@gmail.com> on 2007/02/21 01:02:29 UTC

Problems with SVNIndexXSLT

Hi All,

I would like to create some dynamic content for my repository via the use of
SVNIndexXSLT I have the files set up and it is working fine, but if I try to
bring in a file from the outside....

<xsl:copy-of select="document('http://localhost/blah.html')" />

The contents of blah.html do not show. I tried using a similar xslt via php
and it worked fine, so it's not the code. Has anyone had similar issues?

Thanks,
Ryan

Re: Problems with SVNIndexXSLT

Posted by Hannes Erven <ha...@erven.at>.
Hi Ryan,


> <xsl:copy-of select="document(' http://localhost/blah.html' 
> )" />

The XSL file is not processed by subversion or the web server, but by 
the Web Browser you are using. If you look at the source, you can verify 
this with your setup - if you're seeing a

<?xml-stylesheet type="text/xsl" href="/svnindex.xsl"?>

line, the XSL file is only referenced, not executed.


So, if the referenced blah.html file is not reachable from the CLIENT 
with "http://localhost/blah.html", this won't work. If however you 
replaced the address with whatever URL you are able to access the 
blah.html file from your web browser, it should work.


Hope that helps,

	-hannes

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org