Dan Alford wrote:
I havent declared the src namespace. What should it point to and how would I strip it from the xsl?
Er. Try this
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlsn:src="http://blah" exclude-result-prefixes="src">
at the beginning of your stylesheet.
A hack, but it should work.
Regards, Upayavira
Upayavira wrote:
Dan Alford wrote:
Hi all,
I am trying to use cocoon to run an xpath query from Xindice and then use an xsl-fo stylesheet to make the pdf.
The problem I am having is that the PDF doesnt contain anything except the static data. When I change the pipeline to serialize to xml and then try to run that xml through the XSLT processor it complains about the src:col attribute (used by xindice).
Here is my pipeline.
<map:match pattern="*.pdf">
<map:generate src="xmldb:xindice://localhost:8080/db/hveResponses/[EMAIL PROTECTED]'{1}']"/>
<map:transform src="hve-fo.xsl"/> <map:serialize type="fo2pdf"/> </map:match>
Here is a snapshot of my xml ( I cant show the full xml due to legal concerns).
<xmldb:results query="[EMAIL PROTECTED]'F0063146']" resources="1">
<xmldb:result docid="P11-1058-43-14-63146">
<RESPONSE InternalAccountIdentifier="" ResponseDateTime="03-05-2004 08:43" _CascadingAVMReferenceIdentifier="" _CascadingAVMReportType="Full" _CascadingAVMReturnType="SingleAVM" _CascadingReportTypeOtherDescription="" _CascadingReturnTypeOtherDescription="" _JobIdentifier="F0063146" src:col="/db/vp4Responses" src:key="P11-1058-43-14-63146">
<RESPONSE_DATA>
<PROPERTY_INFORMATION_RESPONSE>
etc etc
I'm more interested in seeing your XSLT. Have you declared the src namespace in your stylesheet? You could then add:
<xsl:template match="@src:*"/>
to have it stripped.
Does that help? (Is it right?)
Upayavira