commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <>
Subject [jira] Updated: (SCXML-88) SCXMLSerializer does not serialize custom namespace declarations
Date Sun, 09 Nov 2008 23:50:44 GMT


Rahul Akolkar updated SCXML-88:

    Fix Version/s: 0.9

Setting fix version to v0.9.

This is going to be interesting, since we don't retain namespace prefixes for all elements
(only executable content, i.e. actions). I suspect we may have to make some recommendations
(or, lay some restrictions, depending how one looks at it :-) about this.

> SCXMLSerializer does not serialize custom namespace declarations
> ----------------------------------------------------------------
>                 Key: SCXML-88
>                 URL:
>             Project: Commons SCXML
>          Issue Type: Bug
>    Affects Versions: 0.8
>            Reporter: Ingmar Kliche
>             Fix For: 0.9
>         Attachments: NamespacesInTransition_testcase.patch
> The SCXMLSerializer writes the scxml namespace as the default namespace to the <scxml>
root tag and adds a "cs" ("commons-scxml") namespace by default.
> But it does not take into account that the original scxml document might contain other
namespace declarations, e.g. on child tags:
> <?xml version="1.0" encoding="UTF-8"?>
> <scxml xmlns="" xmlns:cs=""
version="1.0" initial="S1">
>  <state id="S1">
>   <!-- some E4X like condition using XML namespaces -->
>   <!-- redefine default namespace to "foo" and use explicit namespace prefix for scxml:transition
tag -->
>   <scxml:transition event="foo" cond="* == 3" target="S2" xmlns="foo" xmlns:scxml=""
>   </transition>
>  </state>
>  <state id="S2" final="true">
>  </state>
> </scxml>
> The above SCXML document is parsed properly and namespaces are forwarded to the executor
(i.e. it works correct).  But if it comes to serialization the namespaces are not serialized

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message