[XSLT] Apostrophe dans paramètre.
Bonjour,
J'effectue une transformation XSLT depuis le serveur sous cette forme
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
try {
TransformerFactory tFactory = TransformerFactory.newInstance();
StreamSource ss = new StreamSource(sFileXSL);
Transformer transformer = tFactory.newTransformer(ss);
// Type de transformation (XML, HTML, )
//transformer.setOutputProperty(OutputKeys.METHOD,"xml");
// Passage de paramètres
transformer.setParameter("libelleReference",this.getLibelleReference());
StringWriter swOut = new StringWriter();
transformer.transform(new StreamSource(sFileXML),new StreamResult(swOut));
}
catch(Exception e)
{
return "Error : "+e.getMessage();
} |
Quand je passe à ma XSL une valeur de ce style "L'apostrophe" pour le paramètre libelleReference j'obtiens un résultat vide. Ce qui est bizarre c'est que je n'obtiens pas d'erreur (il ne passe pas dans mon catch).
Mon paramètre est défini comme cela dans ma XSL
Code:
1 2 3 4 5 6
|
...
<xsl:output method="html" encoding="ISO-8859-1" indent="yes"/>
...
<xsl:param name="libelleReference"/>
... |
Merci d'avance pour votre aide.