RE: using different xsl based on xml
Hi, Mike I might not make myself clear at first mail. I have a web application, see, take customer order form, which is in xml format. But different customer has their own format. I would like to get your opinion. Is it a good way that I use different DTD to validate each xml that customer uploads through the web application (Servlet maybe)? If it passes certain DTD validation, I will use the xsl especially for that DTD to do the transformation. But this sounds like I need to do java programming. Can I use XSLT to do similar thing without bothering to write Java program? Thank you, -John -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay Sent: Wednesday, May 02, 2001 3:21 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: using different xsl based on xml > My question is, how can I tell where the xml comes from... That rather depends on how your customers are sending it. Typically, you could ask different customers to send it to different mailboxes, or you could look at the email headers, or you could use a proper messaging service like MQSeries or MSMQ. If none of those mechanisms are possible, then you will have to work it out from the XML content: sounds as if the first phase should be an XSLT stylesheet that examines a document, determines what type it is, and adds this information to some kind of envelope. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list 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