You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robert <rj...@inf.tu-dresden.de> on 2004/06/16 16:19:51 UTC
encode url with Transformer
hello cocooners,
anyone has used the EncodeURLTransformer before?
<map:transformer name="encodeURL"
src="org.apache.cocoon.transformation.EncodeURLTransformer">
</map:transformer>
Is it for encoding URL like "www.apache.org?foo=b a r" to
"www.apache.org?foo=b%20a%20r" ? Or have I something messed up?
In that manner I tried it with the following files. But the @href-Attr.
in the serialized xml stays <a href="www.apache.org?foo=b a r"/>
a.xml:
<?xml version="1.0" encoding="UTF-8"?>
<a href="www.apache.org?foo=b a r"/>
sitemapsnip:
<map:match pattern="rent_*">
<map:generate src="a.xml"/>
<map:transform type="encodeURL"/>
<map:serialize type="xml"/>
</map:match>
Thanks for any sugestions on that, or an example how the transformer
will work right in advance.
RobertJäger
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org