I apologize for the elementary question. I have an XML file, as well as an XSL to translate it into another format (KML). Within the KML I wish to inject a dynamic attribute which is *not* present in the original XML document. I want to emit a node like the following:

```
<NetworkLinkControl>
    <message>This is a pop-up message. You will only see this once</message>
    <cookie>sessionID={@sessionID}</cookie>
    <minRefreshPeriod>5</minRefreshPeriod>
  </NetworkLinkControl>

```

In particular I want the `{@sessionID}` text to be replaced with a dynamic value that I insert into the template somehow (i.e. is NOT part of the source XML document that the XSLT is transforming).

Here's the code I'm using to marshal the KML:

```
DomainObject myObject = ...;

JAXBContext context = JAXBContext.newInstance(new Class[]{DomainObject.class});
Marshaller xmlMarshaller = context.createMarshaller();
xmlMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);

TransformerFactory transFact = TransformerFactory.newInstance();
// converts from jaxb XML representation into KML
Templates displayTemplate = transFact.newTemplates(new StreamSource(new File("conf/jaxbkml.xsl")));

Result outputResult = new StreamResult(System.out);

TransformerHandler handler = 
  ((SAXTransformerFactory) transFact).newTransformerHandler(displayTemplate);
handler.setResult(outputResult);

Transformer transformer = handler.getTransformer();
// TODO: what do I actually fill in here to ensure that the session ID comes through
// in the XSLT document? I can't make heads or tails of the javadocs
transformer.setOutputProperty("{http://xyz.foo.com/yada/baz.html}sessionID", "asdf");

xmlMarshaller.marshal(myObject, handler);

```

I have gathered that there is a way to substitute in values dynamically in the XSLT via [Attribute Value Templates](http://www.w3.org/TR/xslt#section-Computing-Generated-Text) and I assume that there is a way to hookup the [transformer's properties](http://download.oracle.com/javase/1.4.2/docs/api/javax/xml/transform/Transformer.html#setOutputProperties%28java.util.Properties%29) to be used with these Attribute Value Templates, but I don't quite see how it's done. Could someone shed some light? Thanks.