Xupdate Error?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Xupdate Error?

Alex Milowski-2
I posted this to an ATOM feed document to add an entry:

<xup:append select="/atom:feed" child="last()">
   <xup:element name="entry" namespace="http://www.w3.org/2005/Atom">
       ... stuff ...
   </xup:element>
</xup:append>

But the result did not have the entry element in the ATOM namespace:

<atom:feed xmlns:atom='http://www.w3.org/2005/Atom'>
    <atom:author>
        <atom:name>Alex Milowski</atom:name>
    </atom:author>
    <atom:id>id:alexmilowski</atom:id>
    <entry>
        <atom:title>Hello World</atom:title>
        <atom:id>id:hello3</atom:id>
    </entry>
</atom:feed>

What did I do wrong?  Or is this a bug?

--Alex Milowski



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|

Re: Xupdate Error?

Alex Milowski-2
On Fri, 2005-10-21 at 16:06 -0700, Alex Milowski wrote:

> I posted this to an ATOM feed document to add an entry:
>
> <xup:append select="/atom:feed" child="last()">
>    <xup:element name="entry" namespace="http://www.w3.org/2005/Atom">
>        ... stuff ...
>    </xup:element>
> </xup:append>
>
> But the result did not have the entry element in the ATOM namespace:
>
> <atom:feed xmlns:atom='http://www.w3.org/2005/Atom'>
>     <atom:author>
>         <atom:name>Alex Milowski</atom:name>
>     </atom:author>
>     <atom:id>id:alexmilowski</atom:id>
>     <entry>
>         <atom:title>Hello World</atom:title>
>         <atom:id>id:hello3</atom:id>
>     </entry>
> </atom:feed>
>
> What did I do wrong?  Or is this a bug?
>

Playing with this a bit, this seems to work:

<xup:append select="/atom:feed" child="last()"
xmlns:atom="http://www.w3.org/2005/Atom">
   <xup:element name="atom:entry" >
       ... stuff ...
   </xup:element>
</xup:append>


--Alex Milowski



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open