Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xml-dev] SGML complexity

From: Philippe Poulard <Philippe.Poulard@------.-----.-->
To: juanrgonzaleza@----------------.---
Date: 9/11/2006 1:52:00 PM
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 !


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent