[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: XSLT Sample StyleSheets

From: Hunkel, Manfred <M.Hunkel_at_t-systems.com>
Date: 2005-05-10 13:32:05 CEST

| -----UrsprŘngliche Nachricht-----
| Von: Hughes, Trystan [mailto:Trystan.Hughes@assetco.com]
| Gesendet: Dienstag, 10. Mai 2005 13:14
| An: users@subversion.tigris.org
| Betreff: XSLT Sample StyleSheets
| Hi all,
| I am trying the online sample XML Stylesheets (.XSLT files) that are available through
| the online Tigris repository, but am having the following error message...
| Error loading stylesheet: A network error occured loading an XSLT
| stylesheet:http://develcad1:8080/svn/DotNet/svnindex.xsl
| Has anyone got this sample stylesheet to work, or is there any editting of the file that
| needs done (as it may possibly be a directive in the .XSL file that is causing the
| error).

I did, for one ;-)

| I have put the following directive into my Apache httpd.conf file...
| SVNIndexXSLT "svnindex.xsl"
| ...and I have placed the svnindex.xsl and svnindex.css files in the correct directory.

I doubt you did. The path you supply via SVNIndexXSLT will appear literally in the
XML-file delivered by SVN, so if that path isn't correct, the browser fails to load the
stylesheet in order to do the transform.

Example: I put the stylesheets (both, xslt and css) into a directory called 'layout'
directly under httpd's document root. The httpd.conf directive reads

        SVNIndexXSLT "/layout/svnindex.xsl"

which resurfaces as

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

in the XML-file delivered by SVN. "/layout/svnindex.xsl" is the stylesheeet requested
by the browser and duly found by httpd.

As part of the transformation, svnindex.xsl produces the following line in the
header-part of HTML:

        <link rel="stylesheet" type="text/css" href="/layout/svnindex.css" />

again referring to the correct path where svnindex.css can be found.

Hope this helps...

;-) -Manfred

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 10 13:36:40 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.