I have not understand why I obtain <bar xml:base="file.xml" xml:lang=""/>,
like this :

<foo xml:lang="fr" xmlns:xi="http://www.w3.org/2001/XInclude";>
  <bar xml:base="file.xml" xml:lang=""/>
 </foo> 

It's no very logic. 
For example, with XPath, //bar/xml:lang return something like this : ""; 
so what in fact, the langage's bar is "fr".

Why I haven't or can't obtain something like this :
<foo xml:lang="fr" xmlns:xi="http://www.w3.org/2001/XInclude";>
  <bar xml:base="file.xml"/>
 </foo> 

or this :

<foo xml:lang="fr" xmlns:xi="http://www.w3.org/2001/XInclude";>
  <bar xml:base="file.xml" xml:lang="fr"/>
 </foo> 

Thanks for your responce.



DALDEI wrote:
> 
> On which element did you get xml:lang=""
> 
> ----------------------------------------
> David A. Lee
> d...@calldei.com
> http://www.xmlsh.org
> 
> 
> -----Original Message-----
> From: polymorphisme [mailto:webmas...@polymorphisme.org] 
> Sent: Tuesday, October 09, 2012 2:23 PM
> To: j-users@xerces.apache.org
> Subject: XInclude and xml:lang
> 
> 
> My question is very simple.
> I have a main file : 
> <foo xml:lang="fr" xmlns:xi="http://www.w3.org/2001/XInclude";>
>   <xi:include href="file.xml"/> 
> </foo> 
> 
> and the file.xml : <bar/>
> 
> When I do a test with the exemple sax.Writer, I obtain the attribut
> xml:lang="" ! 
> Why I can't obtain xml:lang="fr" ou nothing since I have foo xml:lang="fr"
> ?
> 
> sax.Writer -xi src/resources/xerces/xerces-xi.xml
> <foo xml:lang="fr" xmlns:xi="http://www.w3.org/2001/XInclude";>
>   <bar xml:base="file.xml" xml:lang=""/>
>  </foo> 
> 
> Regard.
> -- 
> View this message in context:
> http://old.nabble.com/XInclude-and-xml%3Alang-tp34533941p34533941.html
> Sent from the Xerces - J - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/XInclude-and-xml%3Alang-tp34533941p34537130.html
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to