<xsl:attribute name="src"><xsl:value-of select="concat("c:/temp/", /aggregation/request/requestParameters/[EMAIL PROTECTED]'output0']/value)"/></xsl:attribute>
Now the weird thing is that using the cocoon-view labels the output comes out ok, but when I let the xml reach the serializer then this
/aggregation/request/requestParameters/[EMAIL PROTECTED]'output0']/value
is empty.
Hope this rings a bell with anyone.
Jorg Heymans wrote:
Input xml
<jar:archive xmlns:jar="http://apache.org/cocoon/jar-archive/1.0"> <jar:entry name="test.bmp" src="D:/temp/East.bmp"/> </jar:archive>
is transformed into
<jar:archive xmlns:jar="http://apache.org/cocoon/jar-archive/1.0"> <jar:entry name="images/dynamicimage.jpg" src="c:/temp/ca6ea9b7"/> <jar:entry name="test.bmp" src="D:/temp/East.bmp"/> </jar:archive>
Using the following sitemap snippet
<map:aggregate element="aggregation" label="debug1"> <map:part src="file://{defaults:GFX-TEMPLATES}{1}.xml"/> <map:part src="cocoon:/uniqueid/{2}"/> </map:aggregate> <map:transform src="stylesheets/make_jarfile.xsl" label="debug2"/> <map:serialize type="jar" />
Now in my jarfile serializer for this xml
public void startElement( String namespaceURI, String localName, String qName, Attributes atts) ...
The src attribute for <jar:entry name="images/dynamicimage.jpg" src="c:/temp/ca6ea9b7"/> comes out as "c:/temp/" and not as "c:/temp/ca6ea9b7"
What could be causing this? I'm on cocoon 2.0.4, have never seen this behaviour with any of the serializers i've written before.
Tnx Jorg
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
