New devices gaining access to the Internet need to obtain multimedia content adapted to their limited capacities. Scalable formats allow to retrieve different versions of a single file by simple manipulations of the bitstream. However, prior knowledge of the data structure is required to perform these operations. In this paper, XML is used to describe the structure of a bitstream. The resulting document is transformed via XSLT Style Sheets into a new XML document from which an adapted bitstream is generated. This method is generic and applicable to any coding format. An application to the emerging JPEG2000 image coding standard is given. Keywords XML, XSLT, Web Publishing, Scalable Media, JPEG2000.