You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kelvin Goodson (JIRA)" <tu...@ws.apache.org> on 2007/02/06 14:09:05 UTC

[jira] Commented: (TUSCANY-1083) Shorter NameSpace prefix to speed up XML processing and reduce communication bandwidth

    [ https://issues.apache.org/jira/browse/TUSCANY-1083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470557 ] 

Kelvin Goodson commented on TUSCANY-1083:
-----------------------------------------

I applied the patch for this after taking a good look at the SDOXSDEcoreBuilder override of getEPackage.  I was trying to figure out whether we could avoid the maintenance issue of copying the whole of the superclass' method's logic into the subclass in order to tweak the behaviour, rather than a guarded call to super.getEPackage() with some subclass fixup logic applied after,  but I wasn't able to make this assertion by inspection due to the early logic in the superclass method that is not guarded by the if(ePackage == null) condition.  I'd be interested to know if you thought about that approach and discounted it,  as the way it stands, if ever there's a fix to the superclass getEPackage method, we won't get it without copying it.

> Shorter NameSpace prefix to speed up XML processing and reduce communication bandwidth
> --------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-1083
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-1083
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SDO Implementation
>    Affects Versions: Java-SDO-Mx
>            Reporter: Yang ZHONG
>             Fix For: Java-SDO-Mx
>
>         Attachments: prefix.xsd, ShortPrefix
>
>
> Given XSD:
>   <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://soaassureservice.soabench.ibm.com" xmlns:as="http://soaassureservice.soabench.ibm.com">
>     <element name="requestInfo" type="string"/>
>     <element name="createClaim">
>     ...
> SDO generates NameSpace prefix too long:
>   <soaassureservice:createClaim xmlns:soaassureservice="http://soaassureservice.soabench.ibm.com">
>     <soaassureservice:requestInfo>...</soaassureservice:requestInfo>
>     ...

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


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org