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

Re: SGML complexity

  • From: Philippe Poulard <Philippe.Poulard@s...>
  • To: juanrgonzaleza@c...
  • Date: Mon, 11 Sep 2006 15:51:29 +0200

Re:  SGML complexity
juanrgonzaleza@c... wrote:
> 
> That i said is that you cannot use XSLT (at least 1.0) for the menu in the
> _final_ doc,  you _may_ use JS.
> 
> Therefore here XSLT is lacking functionality. Is not?

not at all : this is not a lack of functionality of XSLT, it is a lack 
of functionality of the navigator ; most navigators can invoke 
javascript functions, but they can't invoke XSLT
http://www.w3.org/TR/html4/interact/scripts.html

it would be possible, perhaps with something like this :
<META http-equiv="Content-Script-Type" content="text/xslt">
...
<a id="topPrimaryMenu1" ... onmouseover="&lt;xsl:call-template 
name='openMenu'&gt;&lt;xsl:with-param name='doc' 
select='$document'/&gt;&lt;xsl:with-param name='itsId' 
select='&amp;quot;navigationZone1&amp;quot;'/&gt;&lt;/xsl:call-template&gt;">
the template would just copy the entire entry except the element which 
ID is 'navigationZone1' that would be retemplated with the output style 
expected
of course, a navigator should supply means to bind the XSLT namespace to 
xsl (by using the usual xmlns declaration) and to bind $document to the 
DOM document (just like it does for javascript with many objects)

but it would be somewhat useless :
-as XSLT can be already invoked from javascript
-the escape sequence is somewhat ugly

> 
> ---- DATA -----
> 
> function openMenu(itsId){
>   document.getElementById(itsId).style.visibility = "visible";
> }
> function closeMenu(itsId){
>   document.getElementById(itsId).style.visibility = "hidden";
> }
> 
> ...
> 
> 
> <a id="topPrimaryMenu1" ... onmouseover="openMenu('navigationZone1')">
> navigation menu| </a>
> 
> What is XSLT counterexample if any?
> 
> ---------------
> 
> Juan R.
> 
> Center for CANONICAL |SCIENCE)
> 
> 


-- 
Cordialement,

               ///
              (. .)
  --------ooO--(_)--Ooo--------
|      Philippe Poulard       |
  -----------------------------
  http://reflex.gforge.inria.fr/
        Have the RefleX !


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2011 All Rights Reserved.