Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XInclusion produdes invalid document

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Andrew Thompson <lordpixel AT mac.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XInclusion produdes invalid document
  • Date: Mon, 07 Mar 2005 19:49:36 -0500

Andrew Thompson wrote:

In answer to your question from the other mail, I thought I was using Xalan 2.6, but I was using the JDK build in version. Now I'm definitely using Xalan 2.6 - confirmed by setting -verbose:class.

It doesn't make any difference though. the xml:base attributes are still stripped and the xml:lang still goes through.

On Mar 7, 2005, at 3:12 AM, Elliotte Harold wrote:

But I couldn't find a way to do it. There's no way to match xmlns:xi in a stylesheet that I can find.



You can't match it but you can do this:

"<xsl:stylesheet version=\"1.0\" " +
" exclude-result-prefixes=\"xi\"" +
" xmlns:xi=\"http://www.w3.org/2001/XInclude namespace\"" +
" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\""; +
" xmlns:xml=\"http://www.w3.org/XML/1998/namespace\";>" +



Hmm, that should probably be

xmlns:xi=\"http://www.w3.org/2001/XInclude\"";

but basically you do need to use exclude-result-prefixes

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page