You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Jean-Baptiste Onofré (JIRA)" <xa...@xml.apache.org> on 2009/11/05 12:29:32 UTC

[jira] Commented: (XALANJ-2150) Namespace Undeclaration in XML input document is not handled correctly.

    [ https://issues.apache.org/jira/browse/XALANJ-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773899#action_12773899 ] 

Jean-Baptiste Onofré commented on XALANJ-2150:
----------------------------------------------

Hi guys,

any update concerning this issue ?

I have a depending bug in SMX in cause of that (I'm going to find a workaround).

> Namespace Undeclaration in XML input document is not handled correctly.
> -----------------------------------------------------------------------
>
>                 Key: XALANJ-2150
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2150
>             Project: XalanJ2
>          Issue Type: Bug
>          Components: DTM
>    Affects Versions: 2.7
>         Environment: Windows 2000
>            Reporter: Yash Talwar
>            Assignee: Yash Talwar
>
> Namespace Undeclaration for XML 1.1 sytlesheet is not supported in Xalan.  However, a XML 1.1 input document can undeclare namespace prefix.  Xalan should handle the Namespace undeclaration in XML 1.1 input documents correctly.
> For example,
> XML 1.1 input document:
> ------------------------------------
> <?xml version="1.1"?>
> <ns:ele xmlns:ns="uri" xmlns:p1="prefix1">
>   <ele1 xmlns:ns="">
>   </ele1>
>   <ele2/>
>   <ele3 xmlns:ns="" xmlns:p2="prefix2"/>
> </ns:ele>
> -----------------------------------
> Sytlesheet:
> -----------------------------------
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>   <xsl:output method="xml" version="1.1" indent="yes" />
> <xsl:template match="/">
>     <out>
>       <v1>
>         <xsl:value-of select="count(/*/ele1/namespace::*)"/>
>       </v1>
>       <v2>
>         <xsl:value-of select="count(/*/ele2/namespace::*)"/>
>       </v2> 
>       <v3>
>         <xsl:value-of select="count(/*/ele3/namespace::*)"/>
>       </v3>               
>      </out>  
>   </xsl:template>
> </xsl:stylesheet>
> ----------------------------------------
> Current output:
> ----------------------------------------
> <?xml version="1.1" encoding="UTF-8"?>
> <out>
> <v1>3</v1>
> <v2>3</v2>
> <v3>4</v3>
> </out>
> ----------------------------------------
> Correct output:
> ----------------------------------------
> <?xml version="1.1" encoding="UTF-8"?>
> <out>
> <v1>2</v1>
> <v2>3</v2>
> <v3>3</v3>
> </out>
> ---------------------------------------

-- 
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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org