Manfred,
Within an Oracle database PL/SQL procedure, I must check if a certain file is present in the repository. From PL/SQL, it's not possible to call svn directly. Instead, I can capture the output returned by an URL and parse it to get the list of files within a repository directory. With the original HTML output I used to get, it was not possible. But now, with the XML output produced with the help of the SVNIndexXSLT option, it's a breeze.
Thank you again.
>>> "Hunkel, Manfred" <M.Hunkel@t-systems.com> 07/05/05 10:39 am >>>
Yves, Indeed you're right. That string's in the source as well: Take a look at 'mod_dav_svn/repos.c'. My 1.1.4 source has it at line 2129.
Nevertheless, I'm not at all convinced it's the right place to change this. Why do you use html-output, and, what's more, how do you trigger it?
I'm only aware of XML-output generated when you hand the repository URL to the web-browser. Now this output definitely is transformed
via the XSL stylesheet I mentioned, and gives you full control over what things look like, i.e. how SVN's XML is being transformed into (X)HTML.
Perhaps I skipped a relevant (or new) part in the manual that would have told me how to generate HTML instead of XML?? I noted that
the ap_fprintf()-call in the above source is governed by an 'if (gen_html)'... Slightly puzzled... ;-) -Manfred -----Ursprüngliche Nachricht-----
Von: Yves Bergeron [mailto:yves.bergeron@shq.gouv.qc.ca]
Gesendet: Dienstag, 5. Juli 2005 16:18
An: users@subversion.tigris.org; Hunkel, Manfred
Betreff: Re: HTML 4 compliant output from URL to repository Manfred,
I found the svnindex.xsl stylesheet in my build directory within ./subversion-1.2.0/tools/xslt. I doubt apache is using this stylesheet. Instead, I found the used html tags within ./apache2/modules/mod_dav_svn.so. So I think there is something I could change before building the svn apache module. Where ???
Thank you.
>>> "Hunkel, Manfred" <M.Hunkel@t-systems.com> 07/05/05 9:33 am >>>
-----Ursprüngliche Nachricht-----
Von: Yves Bergeron [mailto:yves.bergeron@shq.gouv.qc.ca]
Gesendet: Dienstag, 5. Juli 2005 15:14
An: users@subversion.tigris.org
Betreff: HTML 4 compliant output from URL to repository
Hi,
I'm trying to parse in XML the output from a URL to a Subversion Repository but this output is not HTML4 compliant.
My URL is something like http://shq-xsrc01:8080/svn/dqs/trunk/plsql/ and at the end of the output I got:
<hr noshade><em>Powered by Subversion version 1.2.0 (r14790).</em>
Notice that the <hr noshade> should be <hr noshade />.
Is this something that must be corrected from within Subversion or is it something I can configure ?
Thank you.
---------------------------------------------
Yves,
The output you're citing is created by the svnindex.xsl stylesheet, so if you know where this is stored on your web-server
and if you have access to that file and if you know how to modify an XSL stylesheet, then yes, you can change this...
Just take a look at the template rule that reads '<xsl:template match="/svn">'. The 'Powered by ...' line is somwhere
towards the end of that rule...
;-) -Manfred
« Le présent courriel peut contenir des renseignements confidentiels et ne s'adresse qu'au destinataire dont le nom apparaît ci-dessus. Si ce courriel vous est parvenu par mégarde, veuillez le supprimer et nous en aviser aussitôt. Merci. »
« Le présent courriel peut contenir des renseignements confidentiels et ne s'adresse qu'au destinataire dont le nom apparaît ci-dessus. Si ce courriel vous est parvenu par mégarde, veuillez le supprimer et nous en aviser aussitôt. Merci. »
Received on Tue Jul 5 18:32:31 2005