Re: [xsl] xsl for apply PI to xml file

Subject: Re: [xsl] xsl for apply PI to xml file
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Dec 2009 10:33:13 -0500
At 2009-12-30 07:27 -0800, Claudius Teodorescu wrote:
I would like to ask which is the most simple and elegant
manner to apply, by using a xsl stylesheet, an processing instruction
as follows
to an xml file, in order to have the referred xsl stylesheet applied in the browser.

That is about as simple as it gets. There is no alternative syntax in XSLT for generating a processing instruction.

I'm assuming you are on a server using XSLT to create an XML file that is being sent to an XSLT-aware browser that recognizes stylesheet association, and you want that generated file, when it arrives at the browser, to invoke another stylesheet for its presentation.

If I haven't assumed the situation correctly, then I'm not really sure what you are asking. Remember that any naked processing instruction in your creating stylesheet will be ignored, so you need to use an XSLT instruction to create a processing instruction in the result tree.

I hope this helps.

. . . . . . . . . . . . Ken

UBL and Code List training:      Copenhagen, Denmark 2010-02-08/10
XSLT/XQuery/XPath training after 2010-03-15/19
XSLT/XQuery/XPath training:   San Carlos, California 2010-04-26/30
Vote for your XML training:
Crane Softwrights Ltd.
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:
Video overview:
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07
Legal business disclaimers:

Current Thread