[DOM]modifier une balise xsl via le DOM
Bonjours à tous !
D'abord je suis TRES nouveaux en XML, XSL, DOM :P !
Alors voila mon soucis :
J'ai une balise XSL avec l'ID selection :
Code:
1 2
|
<xsl:for-each select="projet/bibliotheque/livres/livre" id="selection"> |
J'ai une fonction javascript qui doit modifier l'attribut selection :
Code:
1 2 3 4 5 6 7
|
function()
{
var elt_selection = document.getElementById("selection");
elt_selection.removeAttribute("select");
elt_selection.setAttribute("select", "projet/bibliotheque/livres/livre[titre='titre du bouquin à afficher']");
} |
mais ma console java me dit "elt_selection has no properties"...
Je ne sais pas trop quoi penser... donc si quelq'un à une idée ba c'est cool !
Merci d'avance !