RE: [xsl] Need xml dir list by dc:title

Subject: RE: [xsl] Need xml dir list by dc:title
From: "Jim Fuller" <jim.fuller@xxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Jul 2003 15:46:54 +0100

> -----Original Message-----
> From: hgadm@xxxxxxxxxxxxx [mailto:hgadm@xxxxxxxxxxxxx]
> Sent: 22 July 2003 15:21
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] Need xml dir list by dc:title

> Dear all,
> I want to provide a (dynamically generated) HTML page
> with links to all XML files in a given directory.
> The links should however not named by the xml file name
> but with the <dc:title> element of these xml files.
> I've got a nice solution with cocoon using the
> XPathFileGenerator, but I cannot run Cocoon in the
> current environment so I would need a pure XML/XSL
> solution.

you will still need a processor somewhere, either in the browser or on the server....

ok without thinking ( or testing )

xml file

<?xml version="1.0" ?>
<test xmlns:dc="";>


xsl file

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl=""; 
	<xsl:output method = "html" encoding="Windows-1252" />
	<xsl:template match="test">	
			<xsl:apply-templates select="dc:title"/>
	<xsl:template match="dc:title">
		<a href="{.}"><xsl:value-of select="."/></a>

something like this should do, but we dont know your xml format, note that I had to declare the dc namespace ( though I didnt have the correct URI ).

gl, jim fuller

 XSL-List info and archive:

Current Thread