xsl-list
[Top] [All Lists]

Re: [xsl] xsl-url -- passing xsl:variable's to imported stylesheets in XSLT 1.0

2009-06-23 02:43:21
Hello,

the method to provide "something like browser URLs" to client side
stylesheets works well for FF3 and IE6
(http://www.biglist.com/lists/lists.mulberrytech.com/xsl-list/archives/200906/msg00242.html).

Two days ago I realized that it even works fine for "Opera Mini (4.0.2)"
web browser on mobile devices.

Clicking on "cdcatalog.1.xml" for those three browsers resulted in:

My CD Collection
+-----------------+------------+
!Title            !Artist      !
+-----------------+------------+
!Empire Burlesque !Bob Dylan   !
!The white album  !Beatles     !
+-----------------+------------+
cdcatalog.xml?query


Now I am a little surprised that clicking on "cdcatalog.1.xml" for
Opera 9.64 desktop browser (big brother of Opera Mini) just results in:

cdcatalog.xml?query


So the passing of the url-argument works, but the table generated by the
imported stylesheet is not generated.

My question now is, whether this is a problem of the stylesheet(s) or of
Opera 9.64?



Clicking on "cdcatalog.xml" on the same listings section
(http://www.stamm-wilbrandt.de/en/xsl-list/xsl-url/#listings)
for Opera 9.64 results in the same (intended) result as for the other
browsers (just "undef" below the table):

My CD Collection
+-----------------+------------+
!Title            !Artist      !
+-----------------+------------+
!Empire Burlesque !Bob Dylan   !
!The white album  !Beatles     !
+-----------------+------------+
undef



Mit besten Grüßen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


                                                                       
             Hermann                                                   
             Stamm-Wilbrandt/G                                         
             ermany/IBM(_at_)IBMDE                                           To
                                       
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
             06/09/2009 12:48                                           cc
             PM                                                        
                                                                   Subject
                                       [xsl] xsl-url -- passing        
             Please respond to         xsl:variable's to imported      
             xsl-list(_at_)lists(_dot_)mu         stylesheets in XSLT 1.0       
  
              lberrytech.com                                           
                                                                       
                                                                       
                                                                       
                                                                       
                                                                       





Hello,

it is not possible to pass xsl:param's to imported stylesheets with
<xsl:apply-imports> in XSLT 1.0.

But it is possible to pass xsl:variable's with <xsl:apply-imports> in XSLT
1.0, even cross browser.
xsl-url makes use of this to provide "something like browser URLs" to
client side stylesheets.

I wrote a short article on this, you may find it here (with clickable
samples):
http://www.stamm-wilbrandt.de/en/xsl-list/xsl-url/


Mit besten Grüßen / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschäftsführung: Erich Baier
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


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