I'm trying to displaying atom:content which is xhtml
I added xmlns:xxforms="http://orbeon.com/oxf/xml/xforms" to my list of namespaces and then I tried <xxforms:output ref="/atom:feed/atom:entry/atom:content" mediatype="text/xhtml" /> </code> I still can't get it to display, what am I doing wrong? Thanks tyler -- 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
|
You might want to try mediatype="text/html", instead of text/xhtml.
Alex On 4/10/07, [hidden email] <[hidden email]> wrote: > I'm trying to displaying atom:content which is xhtml > > I added > > xmlns:xxforms="http://orbeon.com/oxf/xml/xforms" > > > to my list of namespaces > > and then I tried > > > <xxforms:output ref="/atom:feed/atom:entry/atom:content" mediatype="text/xhtml" /> > > </code> > > I still can't get it to display, what am I doing wrong? > > > > Thanks > > tyler > > > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise 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 |
Alex,
I tried that it's still not working. Any other ideas?? -Tyler On 4/11/07, Alessandro Vernet <[hidden email]> wrote: You might want to try mediatype="text/html", instead of text/xhtml. -- Tyler St. John -- 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
|
Tyler,
Try to remove the mediatype, and see if the output looks like proper HTML. Also, what happens when you have the mediatype="text/html"? Is anything displayed? Alex On 4/11/07, Tyler St. John <[hidden email]> wrote: > Alex, > > I tried that it's still not working. Any other ideas?? > > > -Tyler > > On 4/11/07, Alessandro Vernet < [hidden email]> wrote: > > You might want to try mediatype="text/html", instead of text/xhtml. > > > > Alex > > > > On 4/10/07, [hidden email] <[hidden email]> wrote: > > > I'm trying to displaying atom:content which is xhtml > > > > > > I added > > > > > > xmlns:xxforms="http://orbeon.com/oxf/xml/xforms" > > > > > > > > > to my list of namespaces > > > > > > and then I tried > > > > > > > > > <xxforms:output > ref="/atom:feed/atom:entry/atom:content" > mediatype="text/xhtml" /> > > > > > > </code> > > > > > > I still can't get it to display, what am I doing wrong? > > > > > > > > > > > > Thanks > > > > > > tyler > > > > > > > > > > > > -- > > > 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 > > > > > > > > > > > > -- > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > 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 > > > > > > > > -- > Tyler St. John > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise 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 |
The html coming from the feed, it is valid html. Also, when I changed
text/html, it displays in the xforms:input, but nothing is displaying in the xforms:output. The only other thing I could see as being the problem is that i'm not running the engine, i'm just binding to the namespace. Maybe this is the issue -tyler On 4/11/07, Alessandro Vernet <[hidden email]> wrote: > Tyler, > > Try to remove the mediatype, and see if the output looks like proper > HTML. Also, what happens when you have the mediatype="text/html"? Is > anything displayed? > > Alex > > On 4/11/07, Tyler St. John <[hidden email]> wrote: > > Alex, > > > > I tried that it's still not working. Any other ideas?? > > > > > > -Tyler > > > > On 4/11/07, Alessandro Vernet < [hidden email]> wrote: > > > You might want to try mediatype="text/html", instead of text/xhtml. > > > > > > Alex > > > > > > On 4/10/07, [hidden email] <[hidden email]> wrote: > > > > I'm trying to displaying atom:content which is xhtml > > > > > > > > I added > > > > > > > > xmlns:xxforms="http://orbeon.com/oxf/xml/xforms" > > > > > > > > > > > > to my list of namespaces > > > > > > > > and then I tried > > > > > > > > > > > > <xxforms:output > > ref="/atom:feed/atom:entry/atom:content" > > mediatype="text/xhtml" /> > > > > > > > > </code> > > > > > > > > I still can't get it to display, what am I doing wrong? > > > > > > > > > > > > > > > > Thanks > > > > > > > > tyler > > > > > > > > > > > > > > > > -- > > > > 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 > > > > > > > > > > > > > > > > > -- > > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > > 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 > > > > > > > > > > > > > > -- > > Tyler St. John > > > > -- > > 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 > > > > > > > -- > Orbeon Forms - Web 2.0 Forms for the Enterprise > http://www.orbeon.com/ > > -- Tyler St. John -- 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
|
Tyler,
I'm not sure what you mean by "binding to the namespace" vs. "running the engine". Would it be possible for you to create a test case we can run in the XForms sandbox to reproduce this? Maybe you can just paste the snippet of HTML in a static instance and use an xforms:output bound to that instance. Alex On 4/11/07, Tyler St. John <[hidden email]> wrote: > The html coming from the feed, it is valid html. Also, when I changed > text/html, it displays in the xforms:input, but nothing is displaying > in the xforms:output. The only other thing I could see as being the > problem is that i'm not running the engine, i'm just binding to the > namespace. Maybe this is the issue > > -tyler > On 4/11/07, Alessandro Vernet <[hidden email]> wrote: > > Tyler, > > > > Try to remove the mediatype, and see if the output looks like proper > > HTML. Also, what happens when you have the mediatype="text/html"? Is > > anything displayed? > > > > Alex > > > > On 4/11/07, Tyler St. John <[hidden email]> wrote: > > > Alex, > > > > > > I tried that it's still not working. Any other ideas?? > > > > > > > > > -Tyler > > > > > > On 4/11/07, Alessandro Vernet < [hidden email]> wrote: > > > > You might want to try mediatype="text/html", instead of text/xhtml. > > > > > > > > Alex > > > > > > > > On 4/10/07, [hidden email] <[hidden email]> wrote: > > > > > I'm trying to displaying atom:content which is xhtml > > > > > > > > > > I added > > > > > > > > > > xmlns:xxforms="http://orbeon.com/oxf/xml/xforms" > > > > > > > > > > > > > > > to my list of namespaces > > > > > > > > > > and then I tried > > > > > > > > > > > > > > > <xxforms:output > > > ref="/atom:feed/atom:entry/atom:content" > > > mediatype="text/xhtml" /> > > > > > > > > > > </code> > > > > > > > > > > I still can't get it to display, what am I doing wrong? > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > tyler > > > > > > > > > > > > > > > > > > > > -- > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > -- > > > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > > > 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 > > > > > > > > > > > > > > > > > > > > -- > > > Tyler St. John > > > > > > -- > > > 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 > > > > > > > > > > > > -- > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > http://www.orbeon.com/ > > > > > > > -- > Tyler St. John > > > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise 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 |
Alex,
Below is the test case: The first is the xforms app, and the second is an example atom feed. xformsapp.xhtml ------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xs=" http://www.w3.org/2001/XMLSchema" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:xxforms="http://orbeon.com/oxf/xml/xforms "> <head> <title>XForms + Atom</title> <xforms:model id="default"> <xforms:instance id="content" src="feed-instance.xml" xmlns=" http://www.w3.org/1999/xhtml" /> </xforms:model> </head> <body> <!--- This is the instance that is initially read in to the ATOM reader --> <xforms:repeat nodeset="/atom:feed/atom:entry"> <xforms:label> Title </xforms:label> <hr /> <h1 align="left"> <xforms:output ref="/atom:feed/atom:entry/atom:title"/></h1> <hr /> <xxforms:output ref="/atom:feed/atom:entry/atom:content" mediatype="text/html" /> <hr /> <xforms:output ref="/atom:feed/atom:entry/atom:link"/> <br /> <xforms:output ref="/atom:feed/atom:entry/atom:updated" /> <br /> <i><xforms:output ref="/atom:feed/atom:entry/atom:summary" /></i> <br /> </xforms:repeat> </body> </html> feed.xml ------------------------ <?xml version="1.0" encoding="UTF-8"?> <feed xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.w3.org/2005/Atom"> <author> <name>Tyler St. John</name> <uri>http://www.sis.pitt.edu/~tstjohn</uri> <email>[hidden email]</email> </author> <category term="String"/> <contributor> <name>contributor name</name> <uri>http://www.example.com</uri> <email>[hidden email]</email> </contributor> <generator>nothing here</generator> <icon> http://www.example.com</icon> <id>http://www.example.com</id> <link href="http://www.example.com">text</link> <logo>http://www.example.com</logo> <rights>I own this feed!</rights> <subtitle>My first test of XForms+ ATOM</subtitle> <title>Tyler's Atom Feed</title> <updated>2001-12-17T09:30:47.0Z</updated> <entry> <author> <name>Tyler St >john</name> <uri>http://www.example.com </uri> <email>[hidden email]</email> </author> <category term="String"/> <content type="html"> <b> This is some sample content. </b> </content> <contributor> <name>John Joseph</name> <uri> http://www.example.com</uri> <email>[hidden email]</email> </contributor> <id>http://www.example.com</id> <link href="http://www.example.com">This is the link</link> <published>2001-12-17T09:30:47.0Z</published> <rights>texting rights</rights> <source>text source</source> <summary>text summary</summary> <title>testing title of entry</title> <updated>2001-12-17T09:30:47.0Z</updated> </entry> </feed> Thanks, Tyler On 4/11/07, Alessandro Vernet <[hidden email]> wrote: Tyler, -- Tyler St. John -- 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
|
Hi Tyler,
I didn't see it right away, but you are using <xxforms:output> instead of <xforms:output>. There is no <xxforms:output>, so it was just ignored. Remove one "x" and everything runs fine. I have attached the updated XHTML+XForms file. You can run it in the sandbox. Alex On 4/12/07, Tyler St. John <[hidden email]> wrote: > Alex, > > Below is the test case: > > The first is the xforms app, and the second is an example atom feed. > > xformsapp.xhtml > ------------------------- > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:h="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:xs=" http://www.w3.org/2001/XMLSchema" > xmlns:atom="http://www.w3.org/2005/Atom" > xmlns:xxforms="http://orbeon.com/oxf/xml/xforms "> > > <head> > <title>XForms + Atom</title> > > <xforms:model id="default"> > <xforms:instance id="content" src="feed-instance.xml" xmlns=" > http://www.w3.org/1999/xhtml" /> > </xforms:model> > </head> > > <body> > > <!--- This is the instance that is initially read in to the ATOM reader --> > > > <xforms:repeat nodeset="/atom:feed/atom:entry"> > <xforms:label> Title </xforms:label> <hr /> <h1 align="left"> > <xforms:output > ref="/atom:feed/atom:entry/atom:title"/></h1> > <hr /> > > <xxforms:output ref="/atom:feed/atom:entry/atom:content" > mediatype="text/html" /> <hr /> > <xforms:output ref="/atom:feed/atom:entry/atom:link"/> <br > /> > <xforms:output ref="/atom:feed/atom:entry/atom:updated" /> > <br /> > <i><xforms:output > ref="/atom:feed/atom:entry/atom:summary" /></i> <br /> > > > </xforms:repeat> > > </body> > </html> > > > > feed.xml > ------------------------ > <?xml version="1.0" encoding="UTF-8"?> > <feed xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" > xmlns="http://www.w3.org/2005/Atom"> > > > <author> > <name>Tyler St. John</name> > <uri>http://www.sis.pitt.edu/~tstjohn</uri> > <email>[hidden email]</email> > </author> > <category term="String"/> > <contributor> > <name>contributor name</name> > <uri>http://www.example.com</uri> > <email>[hidden email]</email> > </contributor> > <generator>nothing here</generator> > <icon> http://www.example.com</icon> > <id>http://www.example.com</id> > <link href="http://www.example.com">text</link> > <logo>http://www.example.com</logo> > <rights>I own this feed!</rights> > <subtitle>My first test of XForms+ ATOM</subtitle> > <title>Tyler's Atom Feed</title> > <updated>2001-12-17T09:30:47.0Z</updated> > <entry> > <author> > <name>Tyler St >john</name> > <uri>http://www.example.com </uri> > <email>[hidden email]</email> > </author> > <category term="String"/> > <content type="html"> > > <b> > This is some sample content. > </b> > > > </content> > <contributor> > <name>John Joseph</name> > <uri> http://www.example.com</uri> > <email>[hidden email]</email> > </contributor> > <id>http://www.example.com</id> > <link href="http://www.example.com">This is the link</link> > <published>2001-12-17T09:30:47.0Z</published> > <rights>texting rights</rights> > <source>text source</source> > <summary>text summary</summary> > <title>testing title of entry</title> > <updated>2001-12-17T09:30:47.0Z</updated> > </entry> > </feed> > > > > Thanks, > > Tyler > > On 4/11/07, Alessandro Vernet <[hidden email] > wrote: > > Tyler, > > > > I'm not sure what you mean by "binding to the namespace" vs. "running > > the engine". Would it be possible for you to create a test case we can > > run in the XForms sandbox to reproduce this? Maybe you can just paste > > the snippet of HTML in a static instance and use an xforms:output > > bound to that instance. > > > > Alex > > > > On 4/11/07, Tyler St. John <[hidden email]> wrote: > > > The html coming from the feed, it is valid html. Also, when I changed > > > text/html, it displays in the xforms:input, but nothing is displaying > > > in the xforms:output. The only other thing I could see as being the > > > problem is that i'm not running the engine, i'm just binding to the > > > namespace. Maybe this is the issue > > > > > > -tyler > > > On 4/11/07, Alessandro Vernet <[hidden email]> wrote: > > > > Tyler, > > > > > > > > Try to remove the mediatype, and see if the output looks like proper > > > > HTML. Also, what happens when you have the mediatype="text/html"? Is > > > > anything displayed? > > > > > > > > Alex > > > > > > > > On 4/11/07, Tyler St. John < [hidden email]> wrote: > > > > > Alex, > > > > > > > > > > I tried that it's still not working. Any other ideas?? > > > > > > > > > > > > > > > -Tyler > > > > > > > > > > On 4/11/07, Alessandro Vernet < [hidden email]> wrote: > > > > > > You might want to try mediatype="text/html", instead of > text/xhtml. > > > > > > > > > > > > Alex > > > > > > > > > > > > On 4/10/07, [hidden email] <[hidden email]> wrote: > > > > > > > I'm trying to displaying atom:content which is xhtml > > > > > > > > > > > > > > I added > > > > > > > > > > > > > > xmlns:xxforms=" > http://orbeon.com/oxf/xml/xforms" > > > > > > > > > > > > > > > > > > > > > to my list of namespaces > > > > > > > > > > > > > > and then I tried > > > > > > > > > > > > > > > > > > > > > <xxforms:output > > > > > ref="/atom:feed/atom:entry/atom:content" > > > > > mediatype="text/xhtml" /> > > > > > > > > > > > > > > </code> > > > > > > > > > > > > > > I still can't get it to display, what am I doing wrong? > > > > > > > > > > > > > > > > > > > > > > > > > > > > Thanks > > > > > > > > > > > > > > tyler > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > Tyler St. John > > > > > > > > > > -- > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > -- > > > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > > > http://www.orbeon.com/ > > > > > > > > > > > > > > > > > -- > > > Tyler St. John > > > > > > > > > > > > -- > > > 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 > > > > > > > > > > > > -- > > Orbeon Forms - Web 2.0 Forms for the Enterprise > > 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 > > > > > > > > -- > Tyler St. John > > -- > 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 > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise 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 gaga.xml (5K) Download Attachment |
Free forum by Nabble | Edit this page |