[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: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Wed, 30 Dec 2009 17:36:15 +0100
Re:  xsl for apply PI to xml file
Hi,

> I would like to ask which is the most simple and elegant
> manner to apply, by using a xsl stylesheet, ...
> ...to an xml file, in order to have the referred xsl stylesheet applied
> in the browser.

here is the answer to above reduced question.
Applying a transformation to an XML file in a browser is normally done by
xml-stylesheet processing instruction, see
"Associating Style Sheets with XML documents"
http://www.w3.org/TR/xml-stylesheet/


<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="
/exist/rest//db/xsltforms/xsltforms.xsl"?>
<data>
...
...
</data>


Mit besten Gruessen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschaeftsfuehrung: Dirk Wittkopp
Sitz der Gesellschaft: Boeblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


                                                                           
             Claudius                                                      
             Teodorescu                                                    
             <claud108@xxxxxxx                                          To 
             om>                       xsl-list@xxxxxxxxxxxxxxxxxxxxxx     
                                                                        cc 
             12/30/2009 04:27                                              
             PM                                                    Subject 
                                        xsl for apply PI to xml file  
                                                                           
             Please respond to                                             
             xsl-list@xxxxxxxx                                             
              lberrytech.com                                               
                                                                           
                                                                           




Hi,

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
<xsl:processing-instruction
name="xml-stylesheet">href="/exist/rest//db/xsltforms/xsltforms.xsl"
type="text/xsl"</xsl:processing-instruction>
to an xml file, in order to have the referred xsl stylesheet applied in the
browser.

Thank you,
Claudius Teodorescu

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.