ASP Error: 70
Description: Permission denied
Source: Microsoft VBScript runtime error
|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to transform one doc to 2 docs at the same tim
Hi Jakub, > you accept one xml message and want to conver it to more then one > and send it further e.g. using tcp/ip stream. Basic XSLT 1.0 doesn't allow you to construct more than one document from a single transformation. However, there are two possible ways around it. First, you could create a single result that included both documents, and then split it within your code in some way (through processing the DOM or even parsing the result as a string). The result of an XSLT transformation doesn't have to be a well-formed XML document - it can break the usual rule about only having one document element. Second, most XSLT processors have an extension element that allows you to create several documents from the same transformation. You can use one of these extension elements to create the two separate files, but which one you can use depends on which processor you're using, which you haven't divulged. If you read your processor's documentation, you'll probably find a way of doing it (though, to save you looking, not if your processor is MSXML). If all else fails, you could always adapt your stylesheet so that it accepts a parameter that tells it which document it should generate, and then run it however many times you need to, with different values for that parameter, to create separate files. The next version of XSLT, XSLT 2.0, has a xsl:result-document element that allows you to create several documents from the same transformation. Cheers, Jeni --- Jeni Tennison http://www.jenitennison.com/ 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
|

Cart








