No, I'm sorry, this isn't possible, because Saxon doesn't do the XInclude processing itself, it merely passes the request to the XML parser (Xerces). At

http://xerces.apache.org/xerces2-j/faq-xinclude.html#faq-10

it is stated that Xerces no longer recognizes the 2003 namespace.

And I don't think Xerces allows parsing and XInclude processing to be separated, so there's no scope to insert a filter that changes the namespace after parsing but before XInclude processing. I think transforming the documents to change the namespace is the only option.

Michael Kay
Saxonica

On 18/04/2012 11:05, Philippe.Favrais@continental-corporation.com wrote:
thank you Michael
I have as well an another question :
Could it be possible to tell Saxon, via a parameter, to  be able to understand the "old 2003" xinclude namespace http://www.w3.org/2003/XInclude  ?
For example -xi:http://www.w3.org/2003/XInclude

Thank you
Philippe



De :        Michael Kay <mike@saxonica.com>
A :        saxon-help@lists.sourceforge.net
Date :        16/04/2012 13:38
Objet :        Re: [saxon] xi:include namespace




It's easy enough to use XSLT to change the namespace:

<xsl:template match="xi2003:include" xmlns:xi2003="
http://www.w3.org/2003/XInclude">
 <xsl:element name="xi:include" namespace="
http://www.w3.org/2001/XInclude">
   <xsl:apply-templates/>
 </xsl:element>
</xsl:template>

together with an identity template to copy other elements unchanged.

Michael Kay
Saxonica




On 16/04/2012 12:12,
Philippe.Favrais@continental-corporation.com wrote:
Hello Michael,

I am facing a problem due to the fact the the xi namespace of my file is
xmlns:xi="http://www.w3.org/2003/XInclude". while it should be xmlns:xi="http://www.w3.org/2001/XInclude". (2003 instead if 2001)
Unfortunately, i can't change the namespace  in my files, therefore i wonder i there is a way with my XSL to process the xincluded files with such wrong namespace ?

Thank you
Philippe






De :        
Michael Kay <mike@saxonica.com>
A :        
saxon-help@lists.sourceforge.net
Date :        
16/04/2012 12:24
Objet :        
Re: [saxon] xi:include namespace




I'm sorry, I'm not sure I understand the question.

Are you asking about how to use the -xi option on the command line?

Or are you asking how to transform the files to change the namespace?

Or something else?

Saxon doesn't actually process xi:include itself; the effect of the -xi option on the command line is to set the relevant option on the XML parser, if available.

Michael Kay
Saxonica

On 16/04/2012 10:45,
Philippe.Favrais@continental-corporation.com wrote:
Hello all,


I have "old" xml files with xi:include having for namespace xmlns:xi="
http://www.w3.org/2003/XInclude".
I know that the good namepace should be xmlns:xi="
http://www.w3.org/2001/XInclude", however i can change these files and would like to be able to resolve them with saxon b.
Do you know a way to do it ?

for info i am using saxon from a command line


thank you in advance for your advises

Philippe


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!

http://p.sf.net/sfu/Boundary-d2dvs2



_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help ------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!

http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2



_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help ------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
saxon-help mailing list archived at
http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help


------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev


_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help