xsl-list
[Top] [All Lists]

variable holding a xml document created by xslt

2004-04-11 00:53:58
Hi,

Battling with a stylesheet to display svg maps and making good progress!,
one of my last problems is placing lables so they don't overlap.

Using xslt can I create a variable that holds xml, for example I want to
create a variable that holds the dimentions of  many lables eg.

<labels>
 <label x1="100" y1="110" x2="120" y2="115"/>
 <label x1="..." y1="..." x2="..." y2="..."/>
 <label x1="..." y1="..." x2="..." y2="..."/>
..
</labels>


My idea is to call a template and return a list of lables.

With xslt I can return a single variable or a node from the input document
but I cannot get my mind around returning a xml tree that I construct using
code (in one pass).

Thanks,

Robert