[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xsl for apply PI to xml file

Subject: Re: xsl for apply PI to xml file
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Dec 2009 10:33:13 -0500
Re:  xsl for apply PI to xml file
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 http://XMLPrague.cz 2010-03-15/19
XSLT/XQuery/XPath training:   San Carlos, California 2010-04-26/30
Vote for your XML training:   http://www.CraneSoftwrights.com/s/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.