Xslt external parameter

Posted by enrico on Stack Overflow See other posts from Stack Overflow or by enrico
Published on 2010-05-18T16:22:51Z Indexed on 2010/05/18 20:30 UTC
Read the original article Hit count: 331

Filed under:
|
|
|

In my server side

    TransformerFactory tfactory = TransformerFactory.newInstance();
Transformer transformer = tfactory.newTransformer( 
                     new StreamSource("mytext.xsl"));
transformer.setParameter("parametro","hope");
transformer.transform( new DOMSource(document), outputStream );

--mytext.xslt--

. . .

. . .

why the value of $parametro isn't "hope" in my html output? Thanks

© Stack Overflow or respective owner

Related posts about xslt

Related posts about java