Jernej Tuljak schrieb am 12.02.2012 um 10:45 (+0100):
> Hi! I am having difficulties running this meta-stylesheet:
> 
> <xsl:stylesheet version="1.0"
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>  xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias";
>  xmlns:exsl="http://exslt.org/common";
>  extension-element-prefixes="exsl">

I would have thought that @e-e-p implies @exclude-result-prefixes,
which would explain the omission, but read on, I'm not sure at all
what is the correct behaviour here …

> It outputs this:
> 
> <axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0" extension-element-prefixes="exsl"/>
> 
> As you can see the exsl namespace in the generated stylesheet is
> simply gobbled up.

Same result here, also using Saxon 6.5. LibXSLT (another processor)
produces the result you're expecting.

  <axsl:stylesheet xmlns:exsl="http://exslt.org/common";
    xmlns:axsl="http://www.w3.org/1999/XSL/Transform";
    extension-element-prefixes="exsl" version="1.0"/>

  $ xsltproc --version

  Using libxml 20708, libxslt 10126 and libexslt 815
  xsltproc was compiled against libxml 20707,
    libxslt 10126 and libexslt 815
  libxslt 10126 was compiled against libxml 20707
  libexslt 815 was compiled against libxml 20707

I'm not sure, however, that this is compliant. I'm not even sure there
is grounds to speak of compliancy in this area. Too lazy to look it up …

> Also this is my first time using _any_ mailing list, so please be
> gentle if I'm doing it wrong.

I'd say it's a *perfect* first posting: clear, concise, working code
sample, couldn't be better. :)

Michael

Reply via email to