Hi! I try to make a simple example of an xhtml including SVG but the SVG part is ignored :o( The xhtml page is correctly rendered under firefox 2.0 Did you ever encounter this problem? HAve a nivce day! Frédéric -- 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 |
Frédéric,
I don't think Internet Explorer supports SVG out of the box: http://wiki.svg.org/Internet_Explorer Henrik
On 12/6/06, [hidden email] <[hidden email]> wrote:
-- 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
|
In reply to this post by f.blanc
Frédéric,
Do you make sure you enable XHTML in epilogue-servlet.xpl? Did you look at the result using your web browser's view source feature? -Erik [hidden email] wrote: > Hi! > > I try to make a simple example of an xhtml including SVG but the SVG part is ignored :o( > > The xhtml page is correctly rendered under firefox 2.0 > > Did you ever encounter this problem? > > HAve a nivce day! > > Frédéric 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 |
I forgot to uncomment the XHTML sender in epilogue-servlet.xpl but it doesn't change anything (I commented the HTML part and uncommented the xhtml one) :o(
I'm aware it's not very friendly but I put my epilogue-servlet.xpl and my view.xhtml... If you can see what is going wrong, it would be wonderful :o) Thanks and have a nice day! Frédéric ######################## # Epilogue-servlet.xpl # ######################## <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" ...> <p:param type="input" name="xformed-data"/> <!-- Get request information --> ... <!-- The container is a servlet --> <p:choose href="#xformed-data"> <!-- XHTML detection. Apply the theme, rewrite URLs, and serialize to HTML or XHTML. --> <p:when test="/xhtml:html"> <!-- Apply theme --> <p:choose href="#request"> <p:when test="starts-with(/request/request-path, '/doc/')"> <p:processor name="oxf:xslt"> <p:input name="data" href="#xformed-data"/> <p:input name="request" href="#request"/> <p:input name="config" href="theme-plain.xsl"/> <p:output name="data" id="themed-data"/> </p:processor> </p:when> <p:otherwise> <p:processor name="oxf:xslt"> <p:input name="data" href="#xformed-data"/> <p:input name="request" href="#request"/> <p:input name="config" href="theme-portal.xsl"/> <p:output name="data" id="themed-data"/> </p:processor> </p:otherwise> </p:choose> <!-- Rewrite all URLs in HTML and XHTML documents --> <p:processor name="oxf:xhtml-rewrite"> <p:input name="rewrite-in" href="#themed-data"/> <p:output name="rewrite-out" id="rewritten-data"/> </p:processor> <!-- Use this choose block if you want to send XHTML to browsers that support it. --> <!-- BEGIN ASSUME SOME XHTML CLIENTS --> <p:choose href="#request"> <p:when test="contains(/request/headers/header[name = 'accept'], 'application/xhtml+xml')"> <p:processor name="oxf:qname-converter"> <p:input name="config"> <config> <match> <uri>http://www.w3.org/1999/xhtml</uri> </match> <replace> <prefix></prefix> </replace> </config> </p:input> <p:input name="data" href="#rewritten-data"/> <p:output name="data" id="xhtml-data"/> </p:processor> <p:processor name="oxf:xml-converter"> <p:input name="config"> <config> <method>xhtml</method> <public-doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</public-doctype> <system-doctype>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</system-doctype> <encoding>utf-8</encoding> <content-type>application/xhtml+xml</content-type> </config> </p:input> <p:input name="data" href="#xhtml-data"/> <p:output name="data" id="converted"/> </p:processor> </p:when> <p:otherwise> <p:processor name="oxf:qname-converter"> <p:input name="config"> <config> <match> <uri>http://www.w3.org/1999/xhtml</uri> </match> <replace> <uri></uri> <prefix></prefix> </replace> </config> </p:input> <p:input name="data" href="#rewritten-data"/> <p:output name="data" id="html-data"/> </p:processor> <p:processor name="oxf:html-converter"> <p:input name="config"> <config> <public-doctype>-//W3C//DTD HTML 4.01 Transitional//EN</public-doctype> <version>4.01</version> <encoding>utf-8</encoding> </config> </p:input> <p:input name="data" href="#html-data"/> <p:output name="data" id="converted"/> </p:processor> </p:otherwise> </p:choose> <!-- END ASSUME SOME XHTML CLIENTS --> <!-- Use this choose block if you don't want to send any XHTML but just plain HTML to browsers. --> <!-- BEGIN NO ASSUME XHTML CLIENTS --> <!-- all this section is commented --> <!-- END ASSUME NO XHTML CLIENTS --> <!-- Serialize to HTTP --> <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> <!-- NOTE: HTML converter specifies text/html content-type --> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:when> <!-- Plain HTML detection. No theme is applied, but URLs are rewritten. --> <p:when test="/html"> <!-- Rewrite all URLs in HTML documents --> <p:processor name="oxf:html-rewrite" > <p:input name="rewrite-in" href="#xformed-data" /> <p:output name="rewrite-out" id="rewritten-data" /> </p:processor> <!-- Output regular HTML doctype --> <p:processor name="oxf:html-converter"> <p:input name="config"> <config> <public-doctype>-//W3C//DTD HTML 4.01 Transitional//EN</public-doctype> <version>4.01</version> <encoding>utf-8</encoding> </config> </p:input> <p:input name="data" href="#rewritten-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> <!-- NOTE: HTML converter specifies text/html content-type --> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:when> <!-- XSL-FO detection. Use the XSL-FO serializer --> <p:when test="/fo:root"> <p:processor name="oxf:xslfo-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> <header> <name>Content-Disposition</name> <value>attachment; filename=document.pdf</value> </header> <!-- NOTE: XSL-FO converter specifies application/pdf content-type --> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:when> <!-- Non XML documents --> <p:when test="/document[@xsi:type]"> <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> <!-- NOTE: use content-type specified on root element --> </config> </p:input> <p:input name="data" href="#xformed-data"/> </p:processor> </p:when> <!-- No particular document format detected. Output plain XML. --> <p:otherwise> <!-- Convert and serialize to XML --> <p:processor name="oxf:xml-converter"> <p:input name="config"> <config> <encoding>utf-8</encoding> </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> <!-- NOTE: XML converter specifies application/xml content-type --> </config> </p:input> <p:input name="data" href="#converted"/> </p:processor> </p:otherwise> </p:choose> </p:config> ######################## # view.xhtml # ######################## <?xml version="1.0" encoding="iso-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xlink="http://www.w3.org/1999/xlink"> <head> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1"/> </head> <body> <svg ...> ... </svg> </body> </html> -- 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
|
Frédéric,
Could you also send a view that we can use as an example? I think we should be be able to reproduce this by enabling XHTML in the epilogue and running your example in the XForms sandbox. Alex On 12/7/06, [hidden email] <[hidden email]> wrote: > I forgot to uncomment the XHTML sender in epilogue-servlet.xpl but it doesn't change anything (I commented the HTML part and uncommented the xhtml one) :o( > > I'm aware it's not very friendly but I put my epilogue-servlet.xpl and my view.xhtml... If you can see what is going wrong, it would be wonderful :o) > > Thanks and have a nice day! > > Frédéric > > ######################## > # Epilogue-servlet.xpl # > ######################## > <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline" ...> > > > <p:param type="input" name="xformed-data"/> > > <!-- Get request information --> > ... > > <!-- The container is a servlet --> > <p:choose href="#xformed-data"> > <!-- XHTML detection. Apply the theme, rewrite URLs, and serialize to HTML or XHTML. --> > <p:when test="/xhtml:html"> > <!-- Apply theme --> > <p:choose href="#request"> > <p:when test="starts-with(/request/request-path, '/doc/')"> > <p:processor name="oxf:xslt"> > <p:input name="data" href="#xformed-data"/> > <p:input name="request" href="#request"/> > <p:input name="config" href="theme-plain.xsl"/> > <p:output name="data" id="themed-data"/> > </p:processor> > </p:when> > <p:otherwise> > <p:processor name="oxf:xslt"> > <p:input name="data" href="#xformed-data"/> > <p:input name="request" href="#request"/> > <p:input name="config" href="theme-portal.xsl"/> > <p:output name="data" id="themed-data"/> > </p:processor> > </p:otherwise> > </p:choose> > <!-- Rewrite all URLs in HTML and XHTML documents --> > <p:processor name="oxf:xhtml-rewrite"> > <p:input name="rewrite-in" href="#themed-data"/> > <p:output name="rewrite-out" id="rewritten-data"/> > </p:processor> > > <!-- Use this choose block if you want to send XHTML to browsers that support it. --> > <!-- BEGIN ASSUME SOME XHTML CLIENTS --> > > <p:choose href="#request"> > <p:when test="contains(/request/headers/header[name = 'accept'], 'application/xhtml+xml')"> > <p:processor name="oxf:qname-converter"> > <p:input name="config"> > <config> > <match> > <uri>http://www.w3.org/1999/xhtml</uri> > </match> > <replace> > <prefix></prefix> > </replace> > </config> > </p:input> > <p:input name="data" href="#rewritten-data"/> > <p:output name="data" id="xhtml-data"/> > </p:processor> > <p:processor name="oxf:xml-converter"> > <p:input name="config"> > <config> > <method>xhtml</method> > <public-doctype>-//W3C//DTD XHTML 1.0 Transitional//EN</public-doctype> > <system-doctype>http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</system-doctype> > <encoding>utf-8</encoding> > <content-type>application/xhtml+xml</content-type> > </config> > </p:input> > <p:input name="data" href="#xhtml-data"/> > <p:output name="data" id="converted"/> > </p:processor> > </p:when> > <p:otherwise> > <p:processor name="oxf:qname-converter"> > <p:input name="config"> > <config> > <match> > <uri>http://www.w3.org/1999/xhtml</uri> > </match> > <replace> > <uri></uri> > <prefix></prefix> > </replace> > </config> > </p:input> > <p:input name="data" href="#rewritten-data"/> > <p:output name="data" id="html-data"/> > </p:processor> > <p:processor name="oxf:html-converter"> > <p:input name="config"> > <config> > <public-doctype>-//W3C//DTD HTML 4.01 Transitional//EN</public-doctype> > <version>4.01</version> > <encoding>utf-8</encoding> > </config> > </p:input> > <p:input name="data" href="#html-data"/> > <p:output name="data" id="converted"/> > </p:processor> > </p:otherwise> > </p:choose> > > <!-- END ASSUME SOME XHTML CLIENTS --> > > <!-- Use this choose block if you don't want to send any XHTML but just plain HTML to browsers. --> > <!-- BEGIN NO ASSUME XHTML CLIENTS --> > <!-- all this section is commented --> > <!-- END ASSUME NO XHTML CLIENTS --> > > <!-- Serialize to HTTP --> > <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> > <!-- NOTE: HTML converter specifies text/html content-type --> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:when> > <!-- Plain HTML detection. No theme is applied, but URLs are rewritten. --> > <p:when test="/html"> > <!-- Rewrite all URLs in HTML documents --> > <p:processor name="oxf:html-rewrite" > > <p:input name="rewrite-in" href="#xformed-data" /> > <p:output name="rewrite-out" id="rewritten-data" /> > </p:processor> > <!-- Output regular HTML doctype --> > <p:processor name="oxf:html-converter"> > <p:input name="config"> > <config> > <public-doctype>-//W3C//DTD HTML 4.01 Transitional//EN</public-doctype> > <version>4.01</version> > <encoding>utf-8</encoding> > </config> > </p:input> > <p:input name="data" href="#rewritten-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> > <!-- NOTE: HTML converter specifies text/html content-type --> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:when> > <!-- XSL-FO detection. Use the XSL-FO serializer --> > <p:when test="/fo:root"> > <p:processor name="oxf:xslfo-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> > <header> > <name>Content-Disposition</name> > <value>attachment; filename=document.pdf</value> > </header> > <!-- NOTE: XSL-FO converter specifies application/pdf content-type --> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:when> > <!-- Non XML documents --> > <p:when test="/document[@xsi:type]"> > <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> > <!-- NOTE: use content-type specified on root element --> > </config> > </p:input> > <p:input name="data" href="#xformed-data"/> > </p:processor> > </p:when> > <!-- No particular document format detected. Output plain XML. --> > <p:otherwise> > <!-- Convert and serialize to XML --> > <p:processor name="oxf:xml-converter"> > <p:input name="config"> > <config> > <encoding>utf-8</encoding> > </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> > <!-- NOTE: XML converter specifies application/xml content-type --> > </config> > </p:input> > <p:input name="data" href="#converted"/> > </p:processor> > </p:otherwise> > </p:choose> > > </p:config> > > ######################## > # view.xhtml # > ######################## > > <?xml version="1.0" encoding="iso-8859-1"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xlink="http://www.w3.org/1999/xlink"> > <head> > <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1"/> > </head> > <body> > <svg ...> > ... > </svg> > </body> > </html> > > > > > > -- > 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 > > > -- Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/ -- 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |