You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Arjun Vade (JIRA)" <de...@myfaces.apache.org> on 2012/05/28 08:44:23 UTC

[jira] [Created] (TRINIDAD-2271) The immediate child element of , & is not copied over

Arjun Vade created TRINIDAD-2271:
------------------------------------

             Summary: The immediate child element of <fmd:global-metadata>, <javaee:property-extension> & <mfp:component-metadata> is not copied over
                 Key: TRINIDAD-2271
                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2271
             Project: MyFaces Trinidad
          Issue Type: Bug
          Components: Build, Plugins
            Reporter: Arjun Vade


Our transform20.xsl permits unknown namespaced elements under property-extension, global-metadata and component-metadata. While copying these unknown namespace elements, the immediate child element of these above mentioned nodes is left out and only sub-children nodes are copied over.

E.g. In transform20.xsl, we have this code

  <xsl:template match="fmd:global-metadata/*[
    namespace-uri() != 'http://java.sun.com/xml/ns/javaee'
    and namespace-uri() !='http://myfaces.apache.org/maven-faces-plugin'
    and namespace-uri() !='http://java.sun.com/xml/ns/javaee/faces/design-time-metadata']">
    <xsl:copy-of select="*"/>
  </xsl:template>

With "fmd:global-metadata/*" we are already referring to child element of fmd:global-metadata. And then when we select "*" in <xsl:copy-of select="*"/>, we are copying over the child of the child. Thus, the immediate child element of global-metadata element is left out.

The fix is to replace "*" with "." in <xsl:copy-of select="*"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (TRINIDAD-2271) The immediate child element of , & is not copied over

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TRINIDAD-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13289481#comment-13289481 ] 

Andrew Robinson commented on TRINIDAD-2271:
-------------------------------------------

Patch requires ASF grant to be allowed
                
> The immediate child element of <fmd:global-metadata>, <javaee:property-extension> & <mfp:component-metadata> is not copied over
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2271
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2271
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Build, Plugins
>            Reporter: Arjun Vade
>         Attachments: 13490529.patch
>
>
> Our transform20.xsl permits unknown namespaced elements under property-extension, global-metadata and component-metadata. While copying these unknown namespace elements, the immediate child element of these above mentioned nodes is left out and only sub-children nodes are copied over.
> E.g. In transform20.xsl, we have this code
>   <xsl:template match="fmd:global-metadata/*[
>     namespace-uri() != 'http://java.sun.com/xml/ns/javaee'
>     and namespace-uri() !='http://myfaces.apache.org/maven-faces-plugin'
>     and namespace-uri() !='http://java.sun.com/xml/ns/javaee/faces/design-time-metadata']">
>     <xsl:copy-of select="*"/>
>   </xsl:template>
> With "fmd:global-metadata/*" we are already referring to child element of fmd:global-metadata. And then when we select "*" in <xsl:copy-of select="*"/>, we are copying over the child of the child. Thus, the immediate child element of global-metadata element is left out.
> The fix is to replace "*" with "." in <xsl:copy-of select="*"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] [Updated] (TRINIDAD-2271) The immediate child element of , & is not copied over

Posted by Arjun Vade <ar...@oracle.com>.
Hello

Please review and commit the patch.

Thanks
Arjun

On 28-May-12 12:18, Arjun Vade (JIRA) wrote:
>       [ https://issues.apache.org/jira/browse/TRINIDAD-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Arjun Vade updated TRINIDAD-2271:
> ---------------------------------
>
>      Status: Patch Available  (was: Open)
>
>> The immediate child element of<fmd:global-metadata>,<javaee:property-extension>  &  <mfp:component-metadata>  is not copied over
>> -------------------------------------------------------------------------------------------------------------------------------
>>
>>                  Key: TRINIDAD-2271
>>                  URL: https://issues.apache.org/jira/browse/TRINIDAD-2271
>>              Project: MyFaces Trinidad
>>           Issue Type: Bug
>>           Components: Build, Plugins
>>             Reporter: Arjun Vade
>>
>> Our transform20.xsl permits unknown namespaced elements under property-extension, global-metadata and component-metadata. While copying these unknown namespace elements, the immediate child element of these above mentioned nodes is left out and only sub-children nodes are copied over.
>> E.g. In transform20.xsl, we have this code
>>    <xsl:template match="fmd:global-metadata/*[
>>      namespace-uri() != 'http://java.sun.com/xml/ns/javaee'
>>      and namespace-uri() !='http://myfaces.apache.org/maven-faces-plugin'
>>      and namespace-uri() !='http://java.sun.com/xml/ns/javaee/faces/design-time-metadata']">
>>      <xsl:copy-of select="*"/>
>>    </xsl:template>
>> With "fmd:global-metadata/*" we are already referring to child element of fmd:global-metadata. And then when we select "*" in<xsl:copy-of select="*"/>, we are copying over the child of the child. Thus, the immediate child element of global-metadata element is left out.
>> The fix is to replace "*" with "." in<xsl:copy-of select="*"/>
> --
> This message is automatically generated by JIRA.
> If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>

[jira] [Updated] (TRINIDAD-2271) The immediate child element of , & is not copied over

Posted by "Arjun Vade (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Arjun Vade updated TRINIDAD-2271:
---------------------------------

    Status: Patch Available  (was: Open)
    
> The immediate child element of <fmd:global-metadata>, <javaee:property-extension> & <mfp:component-metadata> is not copied over
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2271
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2271
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Build, Plugins
>            Reporter: Arjun Vade
>
> Our transform20.xsl permits unknown namespaced elements under property-extension, global-metadata and component-metadata. While copying these unknown namespace elements, the immediate child element of these above mentioned nodes is left out and only sub-children nodes are copied over.
> E.g. In transform20.xsl, we have this code
>   <xsl:template match="fmd:global-metadata/*[
>     namespace-uri() != 'http://java.sun.com/xml/ns/javaee'
>     and namespace-uri() !='http://myfaces.apache.org/maven-faces-plugin'
>     and namespace-uri() !='http://java.sun.com/xml/ns/javaee/faces/design-time-metadata']">
>     <xsl:copy-of select="*"/>
>   </xsl:template>
> With "fmd:global-metadata/*" we are already referring to child element of fmd:global-metadata. And then when we select "*" in <xsl:copy-of select="*"/>, we are copying over the child of the child. Thus, the immediate child element of global-metadata element is left out.
> The fix is to replace "*" with "." in <xsl:copy-of select="*"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TRINIDAD-2271) The immediate child element of , & is not copied over

Posted by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TRINIDAD-2271?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Robinson updated TRINIDAD-2271:
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.8-plugins
           Status: Resolved  (was: Patch Available)
    
> The immediate child element of <fmd:global-metadata>, <javaee:property-extension> & <mfp:component-metadata> is not copied over
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TRINIDAD-2271
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-2271
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Build, Plugins
>            Reporter: Arjun Vade
>             Fix For: 2.0.8-plugins
>
>         Attachments: 13490529.patch
>
>
> Our transform20.xsl permits unknown namespaced elements under property-extension, global-metadata and component-metadata. While copying these unknown namespace elements, the immediate child element of these above mentioned nodes is left out and only sub-children nodes are copied over.
> E.g. In transform20.xsl, we have this code
>   <xsl:template match="fmd:global-metadata/*[
>     namespace-uri() != 'http://java.sun.com/xml/ns/javaee'
>     and namespace-uri() !='http://myfaces.apache.org/maven-faces-plugin'
>     and namespace-uri() !='http://java.sun.com/xml/ns/javaee/faces/design-time-metadata']">
>     <xsl:copy-of select="*"/>
>   </xsl:template>
> With "fmd:global-metadata/*" we are already referring to child element of fmd:global-metadata. And then when we select "*" in <xsl:copy-of select="*"/>, we are copying over the child of the child. Thus, the immediate child element of global-metadata element is left out.
> The fix is to replace "*" with "." in <xsl:copy-of select="*"/>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira