Hello C2 Users,currently I have the following pipeline in my sitemap:

        <map:match pattern="*.svg">
                <map:generate src="docs/samples/svg/{1}.svg"/>
                <map:serialize type="svg2jpeg"/>
        </map:match>



        I woud like that when the user request
http://localhost/cocoon/picture.svg?width=200&height=300 , cocoon reads the
SVG file,make a XSL transform in order to resize the SVG an finally
serialize to jpg.My SVG files all looks like :




        <?xml version="1.0" encoding="iso-8859-1"?>
        <svg  xmlns:xlink="&ns_xlink;" xmlns="http://www.w3.org/2000/svg";
width="463.4675" height="463.4517" viewBox="0 0 463.4675 463.4517"
                style="overflow:visible;enable-background:new 0 0 463.4675 463.4517"
xml:space="preserve">
        <g id="Layer_1" style="stroke:#000000;">
                <g>
                        <path style="fill:none;stroke:#100068;stroke-width:54;"
d="M404.3962,121.6704

C368.0271,64.7349,304.28,26.9858,231.7156,26.9858c-113.0801,0-204.75,91.6699
-204.75,204.75s91.6699,204.75,204.75,204.75
                                c113.082,0,204.752-91.6699,204.752-204.75H335.9646"/>
                        <path style="fill:none;stroke:#100068;stroke-width:45;"
d="M338.7771,163.4927

c-22.5439-35.2969-62.0684-58.7021-107.0615-58.7021c-70.1104,0-126.9453,56.83
5-126.9453,126.9453

s56.835,126.9453,126.9453,126.9453c49.335,0,92.0938-28.1426,113.1084-69.25"/
>
                </g>
                <g>
                        <path style="fill:#100068;stroke:none;"
d="M300.7195,195.7358H162.718v-30.002h138.0015V195.7358z"/>
                        <path style="fill:#100068;stroke:none;"
d="M300.7195,297.7368H162.718v-30.001h138.0015V297.7368z"/>
                        <path style="fill:#100068;stroke:none;"
d="M300.6228,195.7534l-118.5073,95.9668l-19.4019-23.9541l118.5117-95.9717
                                L300.6228,195.7534z"/>
                </g>
        </g>
        </svg>



        The XSL must only change the values "width" and "height" in the svg xmlns
declaration,based on the URL request parameters.
        Question:
        How can I get the request parameter in this scenario ?




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to