xsl-list
[Top] [All Lists]

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

2009-12-30 11:36:48
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(_at_)yahoo(_dot_)c                                       
   To 
             om>                       
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com     
                                                                        cc 
             12/30/2009 04:27                                              
             PM                                                    Subject 
                                       [xsl] xsl for apply PI to xml file  
                                                                           
             Please respond to                                             
             xsl-list(_at_)lists(_dot_)mu                                       
      
              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




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>