xslt2 and Exist

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

xslt2 and Exist

Fabien GUENEGO
Hello,

I know the reponse but perhaps...
I want in a XPL use a file store in a Exist database and perform an XSLT
transformation on it. Is it possible?

A simple exemple ...

<p:processor name="oxf:xslt">
        <p:input name="data" href="/exist/rest/db/orbeon/file.xml" />
        <p:input name="config">
            <xsl:stylesheet version="2.0">
                <xsl:import href="/apps/transform.xsl" />
            </xsl:stylesheet>
        </p:input>
        <p:output name="data"  />
    </p:processor>

my differents tests say 'no' but perhaps... For the moment, I have
"default" file on the serveur and other file on the database. I want
perform the same transformation on the 2 files but i don't want write
clone xquery file for the xsl file...
The solution is to put the "default" files in the database but my
question is always actuel :-)

Fabien (sorry for my poor english)


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xslt2 and Exist

Fabien GUENEGO
a soluce:

get the file in the database with a xquery requete
and after, do the xslt transform on the result of the xquery requete.

Fabien

Fabien GUENEGO a écrit :

> Hello,
>
> I know the reponse but perhaps...
> I want in a XPL use a file store in a Exist database and perform an
> XSLT transformation on it. Is it possible?
>
> A simple exemple ...
>
> <p:processor name="oxf:xslt">
>        <p:input name="data" href="/exist/rest/db/orbeon/file.xml" />
>        <p:input name="config">
>            <xsl:stylesheet version="2.0">
>                <xsl:import href="/apps/transform.xsl" />
>            </xsl:stylesheet>
>        </p:input>
>        <p:output name="data"  />
>    </p:processor>
>
> my differents tests say 'no' but perhaps... For the moment, I have
> "default" file on the serveur and other file on the database. I want
> perform the same transformation on the 2 files but i don't want write
> clone xquery file for the xsl file...
> The solution is to put the "default" files in the database but my
> question is always actuel :-)
>
> Fabien (sorry for my poor english)


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xslt2 and Exist

Louis Ratzesberger
In reply to this post by Fabien GUENEGO

Hi Fabien,

Is the imported file a complete stylesheet? 

I believe it is necessary in XPL to load external data into infosets
that can be accessed within the XPL document:

<p:processor name="oxf:url-generator">
<p:input name="config">
<config>
      <url>/apps/transform.xsl/url>
<
content-type>application/xml</content-type>
<validating>true</validating>
<handle-xinclude>false</handle-xinclude>
</config>
</p:input>
  <p:output name="data" id="transform"/>
</p:processor>


<p:processor name="oxf:url-generator">
<p:input name="config">
<config>
      <url>http://localhost/exist/rest/db/orbeon/file.xml</url>
<
content-type>application/xml</content-type>
<validating>true</validating>
<handle-xinclude>false</handle-xinclude>
</config>
</p:input>
  <p:output name="data" id="xdata"/>
</p:processor>


HTH,
Hank

http://orbeon.com/orbeon/doc/processors-generators-url


[notice edit below]

Quoting Fabien GUENEGO <[hidden email]>:

> Hello,
>
> I know the reponse but perhaps...
> I want in a XPL use a file store in a Exist database and perform an
> XSLT transformation on it. Is it possible?
>
> A simple exemple ...
>
> <p:processor name="oxf:xslt">
>        <p:input name="data" href="#xdatal" />
>        <p:input name="config href="#transform"/>
>        <p:output name="data"  />
>    </p:processor>
>
> my differents tests say 'no' but perhaps... For the moment, I have
> "default" file on the serveur and other file on the database. I want
> perform the same transformation on the 2 files but i don't want write
> clone xquery file for the xsl file...
> The solution is to put the "default" files in the database but my
> question is always actuel :-)
>
> Fabien (sorry for my poor english)
>

 

--
Hank Ratzesberger
[hidden email]



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws