Quantcast

[ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

SourceForge.net
Bugs item #2840896, was opened at 2009-08-20 12:30
Message generated for change (Tracker Item Submitted) made by gev
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2840896&group_id=17691

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Evgeny Gazdovsky (gev)
Assigned to: Nobody/Anonymous (nobody)
Summary: Xproc. Step p:xslt iis not working properly

Initial Comment:
transformations of doc with not emty xmlns is not working.
Example:
<p:pipeline xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline">
    <p:input port="source" primary="true">
        <p:inline>
            <html xmlns="f">
                <body>
                    <h1>It Worked</h1>
                    <p>I was passed through an XSLT stylesheet.</p>
                </body>
            </html>
        </p:inline>
    </p:input>
    <p:xslt>
        <p:input port="stylesheet">
            <p:inline>
                <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
                    <xsl:template match="node()|@*">
                        <xsl:copy>
                            <xsl:apply-templates/>
                        </xsl:copy>
                    </xsl:template>
                </xsl:stylesheet>
            </p:inline>
        </p:input>
    </p:xslt>
</p:pipeline>

Result:
< xmlns="f">
    <>
        <>It Worked</>
        <>I was passed through an XSLT stylesheet.</>
    </>
</>

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=117691&aid=2840896&group_id=17691

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

Evgeny Gazdovsky
Tested with saxon too - result same.
And transform:transform() work as well

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

Morbo
Hi,
There is still some problems with namespace evaluation in XPath expression.
I work with eXist 1.4 and Saxonb 9-0-0-2j (saxonhe9-2-1-1j does't compile).
I updated this bug report :
https://sourceforge.net/tracker/index.php?func=detail&aid=2840896&group_id=17691&atid=117691

Here is a snipet if you want to reproduce the pb :
-----------------------------------
<p:pipeline xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" name="pipeline">
    <p:input port="source" primary="true">
        <p:inline>
            <html>
                <body>
                    <h1>It Worked</h1>
                    <p>I was passed through an XSLT stylesheet.</p>
                </body>
            </html>
        </p:inline>
    </p:input>
    <p:xslt>
        <p:input port="stylesheet">
            <p:inline>
                <xsl:stylesheet version="1.0">
                    <xsl:template match="/">
                        <html>
                            <body>
                                <p>Version:
									<xsl:value-of select="system-property('xsl:version')"/>
                                    <br/>
									Vendor:
									<xsl:value-of select="system-property('xsl:vendor')"/>
                                    <br/>
							Vendor URL:
									<xsl:value-of select="system-property('xsl:vendor-url')"/>
                                </p>
                            </body>
                        </html>
                    </xsl:template>
                </xsl:stylesheet>
            </p:inline>
        </p:input>
    </p:xslt>
</p:pipeline>
--------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

James Fuller-4
thx for the test case, much appreciated.

James Fuller

On Tue, Jun 29, 2010 at 1:21 PM, Morbo <[hidden email]> wrote:

>
> Hi,
> There is still some problems with namespace evaluation in XPath expression.
> I work with eXist 1.4 and Saxonb 9-0-0-2j (saxonhe9-2-1-1j does't compile).
> I updated this bug report :
> https://sourceforge.net/tracker/index.php?func=detail&aid=2840896&group_id=17691&atid=117691
>
> Here is a snipet if you want to reproduce the pb :
> -----------------------------------
> <p:pipeline xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:c="http://www.w3.org/ns/xproc-step"
> xmlns:p="http://www.w3.org/ns/xproc" name="pipeline">
>    <p:input port="source" primary="true">
>        <p:inline>
>            <html>
>                <body>
>                    <h1>It Worked</h1>
>                    <p>I was passed through an XSLT stylesheet.</p>
>                </body>
>            </html>
>        </p:inline>
>    </p:input>
>    <p:xslt>
>        <p:input port="stylesheet">
>            <p:inline>
>                <xsl:stylesheet version="1.0">
>                    <xsl:template match="/">
>                        <html>
>                            <body>
>                                <p>Version:
>                                                                        <xsl:value-of select="system-property('xsl:version')"/>
>                                    <br/>
>                                                                        Vendor:
>                                                                        <xsl:value-of select="system-property('xsl:vendor')"/>
>                                    <br/>
>                                                        Vendor URL:
>                                                                        <xsl:value-of select="system-property('xsl:vendor-url')"/>
>                                </p>
>                            </body>
>                        </html>
>                    </xsl:template>
>                </xsl:stylesheet>
>            </p:inline>
>        </p:input>
>    </p:xslt>
> </p:pipeline>
> --------------------------------------
> --
> View this message in context: http://exist.2174344.n4.nabble.com/exist-Bugs-2840896-Xproc-Step-p-xslt-iis-not-working-properly-tp2192382p2272050.html
> Sent from the exist-open mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Exist-open mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/exist-open
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [ exist-Bugs-2840896 ] Xproc. Step p:xslt iis not working properly

Morbo
Hi,
I've done some more tests, with eXist-DB from the SVN (1.5).
And there is still troubles (but differents from 1.4) and actually it's the same on the official website.
For instance the following Rest URL :
http://demo.exist-db.org/exist/xproc/examples/simple-pipeline.xproc?stdin=/db/xproc/examples/test.xml
returns :
<doc>
<para>This is test data</para>
</doc>

Where as the stylsheet applied should add a root node "success" with some info on the XSLT processor.
The xls-t is ignored and the original datas are sent.
Loading...