This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
we are presenting some content to the users via COCOON. now i need to rewrite all the URLs in this content so they are absolute. here is an example of what i want to do: input: <something src="../images/image1.gif"/> output: <something src="IP ORT/context/path/../images/image1.gif"/>
how can i achieve this in my XSLT without hardcoding the IP/PORT/PATH values ? can i pass in this values as parameters trough the sitemap.xmap of cocoon ?
Not sure how it can done using coccoon properties but with xslt, you can create a small xslt file called resource.xsl with a variable called IPPORT in it, then import/include this xsl in to your main xslt and pass the variable as an input the URL. Not good solution: if you have too many xslt files