@cocoon.apache.org
Subject: RE: XPathDirectory generator styling help
Date: Fri, 10 Nov 2006 08:31:30 -0600
Hi Ard,
I did, in fact, get it to work with some tweaking of the xsl. The
snippets follow.
What I would like to do now is strip the .xml file extension from the
resulting href in the html
Hi Ard,
I did, in fact, get it to work with some tweaking of the xsl. The
snippets follow.
What I would like to do now is strip the .xml file extension from the
resulting href in the html. Suggestions?
Joe
P.S. Here is what works.
From this sitemap matcher...
map:match pattern=articles/
From: J.D. Williams [EMAIL PROTECTED]
Reply-To: users@cocoon.apache.org
To: users@cocoon.apache.org
Subject: RE: XPathDirectory generator styling help
Date: Fri, 10 Nov 2006 08:31:30 -0600
Hi Ard,
I did, in fact, get it to work with some tweaking of the xsl. The
snippets follow.
What I would
Hi Andrew,
I will give this a try and report back. I have a couple other things
before I get back to this particular project.
Joe
How about
xsl:attribute name=href
xsl:value-of select=substring-before(@name, '.xml')/
/xsl:attribute
? Or, if you
Hello,
did you manage to get it to work? Think you have some problems with xml/xsl
transformations. Also take into account the namespaces. If you are still having
problems, please let us know, or subscribe to some xsl mailinglist, like
http://www.mulberrytech.com/xsl/xsl-list/.
Your problem
Your output is not correct XML. You need to add an element around the text for example change you XSL to thisxsl:template match=/
articles xsl:apply-templates/ /articles/xsl:templatexsl:template match=article
article xsl:value-of select=title/ /article/xsl:template
On 11/1/06, J.D. Williams