Hi Orbeon, Is there any examples on how to use oxf:svg-converter
oxf:svg-serializer and some documentation about it? Thanks again! Jordi -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
FWIW, I have added the following to the epilogue:
<p:when test="/svg:svg"> <p:processor name="oxf:svg-converter"> <p:input name="config"><config/></p:input> <p:input name="data" href="#xformed-data"/> <p:output name="data" id="converted"/> </p:processor> <p:processor name="oxf:http-serializer"> <p:input name="config"> <config> <header> <name>Cache-Control</name> <value>post-check=0, pre-check=0</value> </header> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:when> This will add default processing through the SVG converter for all SVG files sent to the output. -Erik Erik Bruchez wrote: > Jordi, > > I don't think there is. The oxf:svg-converter processor leverages Apache > Batik, of which we now include version 1.6. You should be able to just > feed it SVG in its data input, feed the output to the HTTP serializer > and see what happens ;-) > > -Erik > > Jordi Amatller wrote: >> Hi Orbeon, >> >> >> >> Is there any examples on how to use oxf:svg-converter >> oxf:svg-serializer and some documentation about it? >> >> >> >> Thanks again! >> >> Jordi >> >> >> > > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
Is this going to cause a problem for those of us that are using Orbeon to serve SVG to clients that support it? I had a look at the code for the svg-converter, and unless I'm misreading it, it uses Batik to convert the SVG document into a png image. If this is the case, I'll have to make sure to remove this from the epilogue and replace it with the custom SVG handling code I'm currently using next time I update. -- Daniel E. Renfer http://kronkltd.net/ On 7/13/07, Erik Bruchez <[hidden email]> wrote: > FWIW, I have added the following to the epilogue: > > <p:when test="/svg:svg"> > <p:processor name="oxf:svg-converter"> > <p:input name="config"><config/></p:input> > <p:input name="data" href="#xformed-data"/> > <p:output name="data" id="converted"/> > </p:processor> > <p:processor name="oxf:http-serializer"> > <p:input name="config"> > <config> > <header> > <name>Cache-Control</name> > <value>post-check=0, pre-check=0</value> > </header> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:when> > > This will add default processing through the SVG converter for all SVG > files sent to the output. > > -Erik > > Erik Bruchez wrote: > > Jordi, > > > > I don't think there is. The oxf:svg-converter processor leverages Apache > > Batik, of which we now include version 1.6. You should be able to just > > feed it SVG in its data input, feed the output to the HTTP serializer > > and see what happens ;-) > > > > -Erik > > > > Jordi Amatller wrote: > >> Hi Orbeon, > >> > >> > >> > >> Is there any examples on how to use oxf:svg-converter > >> oxf:svg-serializer and some documentation about it? > >> > >> > >> > >> Thanks again! > >> > >> Jordi -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Daniel,
Good point. We have some plans to make the epilogue easily configurable through properties. This seems to be the best way to make theme, XHTML processing, and other such interesting options in the epilogue easily configurable: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307139&group_id=168&atid=350207 The current idea is to add an XPath function, accessible from XPL, which can access configuration properties. For the SVG part, I have entered this: http://forge.objectweb.org/tracker/index.php?func=detail&aid=307303&group_id=168&atid=350207 So hopefully this will soon be just one property away. -Erik Daniel E. Renfer wrote: > Erik, > > Is this going to cause a problem for those of us that are using Orbeon > to serve SVG to clients that support it? > > I had a look at the code for the svg-converter, and unless I'm > misreading it, it uses Batik to convert the SVG document into a png > image. If this is the case, I'll have to make sure to remove this from > the epilogue and replace it with the custom SVG handling code I'm > currently using next time I update. > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
An xxforms:property('string') or some such function that could be called in XPL would be a very welcome addition. I can see it's usefulness for things other than making a configurable epilogue. It's a shame the ObjectWeb bug tracker doesn't let you declare that one bug depends on another. -- Daniel E. Renfer http://kronkltd.net/ On 7/16/07, Erik Bruchez <[hidden email]> wrote: > Daniel, > > Good point. We have some plans to make the epilogue easily configurable > through properties. This seems to be the best way to make theme, XHTML > processing, and other such interesting options in the epilogue easily > configurable: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307139&group_id=168&atid=350207 > > The current idea is to add an XPath function, accessible from XPL, which > can access configuration properties. > > For the SVG part, I have entered this: > > http://forge.objectweb.org/tracker/index.php?func=detail&aid=307303&group_id=168&atid=350207 > > So hopefully this will soon be just one property away. > > -Erik -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Following-up on this: I commented out the SVG handling in the epilogue
for now until we have this configuration mechanism through properties. This way, we won't break existing code. -Erik Daniel E. Renfer wrote: > Erik, > > An xxforms:property('string') or some such function that could be > called in XPL would be a very welcome addition. I can see it's > usefulness for things other than making a configurable epilogue. > > It's a shame the ObjectWeb bug tracker doesn't let you declare that > one bug depends on another. > -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |