Serving an XSL document?

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

Serving an XSL document?

Mats Eklund-2
Hi,

I would like to make available an xslt document for download by the client. I understand I can do this with the <files /> tag in the page-flow. However, I also need to do a server side include in the xsl. I tried to configure an xml-view in the page-flow pointing to the xslt file, however, even though the file suffix is xml, it is interpreted as an xslt view, and the transform is applied instead of delivered to the client. Do I need to define an xpl to achieve this?

Thanks,
MAts



--
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: Serving an XSL document?

Alessandro  Vernet
Administrator
Mats,

An uncommon yet interesting case. Like you say, you could define an
XPL for this, or change your XSLT to be an XSLT that generates XSLT:
adding an xsl:stylesheet and xsl:template match="/" around your XSLT.

Alex

On Fri, Feb 26, 2010 at 2:34 PM, Mats Eklund <[hidden email]> wrote:

>
> Hi,
>
> I would like to make available an xslt document for download by the client. I understand I can do this with the <files /> tag in the page-flow. However, I also need to do a server side include in the xsl. I tried to configure an xml-view in the page-flow pointing to the xslt file, however, even though the file suffix is xml, it is interpreted as an xslt view, and the transform is applied instead of delivered to the client. Do I need to define an xpl to achieve this?
>
> Thanks,
> MAts
>
>
>
> --
> 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
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Re: Serving an XSL document?

Mats Eklund-2
Great, I like the second approach and it works! I had to use the xslt element "xsl:namespace-alias" for the first time.

--- On Fri, 2/26/10, Alessandro Vernet <[hidden email]> wrote:

From: Alessandro Vernet <[hidden email]>
Subject: [ops-users] Re: Serving an XSL document?
To: [hidden email]
Date: Friday, February 26, 2010, 11:55 PM

Mats,

An uncommon yet interesting case. Like you say, you could define an
XPL for this, or change your XSLT to be an XSLT that generates XSLT:
adding an xsl:stylesheet and xsl:template match="/" around your XSLT.

Alex

On Fri, Feb 26, 2010 at 2:34 PM, Mats Eklund <mats.eklund@...> wrote:

>
> Hi,
>
> I would like to make available an xslt document for download by the client. I understand I can do this with the <files /> tag in the page-flow. However, I also need to do a server side include in the xsl. I tried to configure an xml-view in the page-flow pointing to the xslt file, however, even though the file suffix is xml, it is interpreted as an xslt view, and the transform is applied instead of delivered to the client. Do I need to define an xpl to achieve this?
>
> Thanks,
> MAts
>
>
>
> --
> You receive this message as a subscriber of the ops-users@... mailing list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>



--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet

-----Inline Attachment Follows-----


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



--
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