mime type and parsing output
ok, first I wanted to clarify that getting attributes through ancestor really does work, thanks to everyone who helped :) The problem was that an xml is parsed and each item is assigned an id attribute (through script), then each child is suppose to get an parent attribute equal to it's parent , the problem is of course how do you set the parent to the id when it's in the output tree? I solved this by running it through two stylesheets ,first assigning the id's and then adding the parent on the second run, but this doesnt seem like an elegant solution, any ideas? Secondly the xml that is output is interpreted as text or html. I'm guessing that's because for some reason linebreaks are inserted around the attributes, how do I force it to parse it as xml, activating the internal ie xml browser. I've tried modifying the contenttype in the html header to text/xml but that didn't work. ----------- Mattias Konradsson Icon medialab XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format