kszbcss / xspec

Private backup of the xspec project at google code, as google code is going to disappear.
MIT License
1 stars 0 forks source link

xslt stylesheet as output #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

A transformation that give a xslt:stylesheet doc as output
is impossible(?) in v.0.2.

Prob:
xsl:version attrib is stripped from "Expected Result DOM"
but is present in "Result DOM" in runner.

Result:
<xsl:stylesheet xmlns:impl="urn:x-xspec:compile:xslt:impl"
         xmlns:core="http://www.docstream.no/xslt/core/func"
         xsl:version="2">
  ......
</xsl:stylesheet>

Expected result:
<xsl:stylesheet xmlns:impl="urn:x-xspec:compile:xslt:impl">
   .......
</xsl:stylesheet>

Xspec setup:
------------
 <x:expect label="same output, can have some new meta tags">
            <xslt:stylesheet xslt:version="2"
xmlns:xslt="http://www.w3.org/1999/XSL/Transform">
            <xslt:import href="/xslt/html-hooks.xsl" />
            <xslt:import href="/home/common/content2html.xsl" />
             <html xmlns="http://www.w3.org/1999/xhtml"     >              
                 <head/>
                 <body>
                    <div>...</div>
                     <span>...</span>
                     <p>word for word</p>
                 </body>
             </html>
            </xslt:stylesheet>

        </x:expect>

I am on v.0.2 Ubuntu.

Original issue reported on code.google.com by kjetil.m...@gmail.com on 12 Apr 2010 at 7:35

GoogleCodeExporter commented 9 years ago
screenshot

Original comment by kjetil.m...@gmail.com on 12 Apr 2010 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
exclude-result-prefixes="#all"
in "XSLT under test"
has no effect 

Original comment by kjetil.m...@gmail.com on 12 Apr 2010 at 7:46

GoogleCodeExporter commented 9 years ago
Thanks for the bug report.  Could you please attach a simple, and especially 
complete 
repro?  So we can work on it in the exact same conditions.

Original comment by fgeorges on 12 Apr 2010 at 10:30

GoogleCodeExporter commented 9 years ago

Original comment by kjetil.m...@gmail.com on 12 Apr 2010 at 11:58

Attachments:

GoogleCodeExporter commented 9 years ago
Thansk for the sample.  I just committed a fix in r166.  Could you please test 
it and 
close this issue if it works for you?

(if you don't use the Subversion version, all you need is the last version of 
this file: 
http://xspec.googlecode.com/svn/trunk/generate-tests-helper.xsl, just download 
it 
and replace the one you have in your XSpec directory)

Original comment by fgeorges on 12 Apr 2010 at 2:36

GoogleCodeExporter commented 9 years ago
Well, even if it is solved, actually I will close it myself.  I did not add a 
regression test 
yet...

Original comment by fgeorges on 12 Apr 2010 at 2:40

GoogleCodeExporter commented 9 years ago
Looking good! 
Thx a lot

regards
kjetil

Original comment by kjetil.m...@gmail.com on 12 Apr 2010 at 3:01

GoogleCodeExporter commented 9 years ago

Original comment by fgeorges on 15 Sep 2010 at 7:31