The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

How can I generate an external .css from xml (with xsl)???

How can I generate a .css file (out of html file) which uses data from .xml (for example img roots to apply a "background-image" to elements with an "id" or "class", also applied from an xml "IDREF" tag...)?

I guess there is a way to create the .css file with an xsl but I don't know how.

<p id="{//MENU1/MENU/PARENT/IDREF}">I want this paragraph to show, as a background-image, the value of //IMAGE1/RUTE node. But I don't want any style attribute in the html (neither a style tag into the head), but I want to create, from this xsl, a css external file that make use of this value, I mean //IMAGE1/RUTE</p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

CSS FILE:

p#MAIN01 { background: url('mydirectory/images/icons/mydog.gif');}

I mean:

p#//MENU1/MENU/PARENT/IDREF { background: url('//IMAGE1/RUTE');}

What I'm looking for is a way (without java code or something...) to generate with this xsl (only from one xsl) the html source and the css file at time.