Subject: one xsl file for two parsings From: Joseph Vallot <jvallot@xxxxxxxxxxxxxx> Date: Tue, 04 Apr 2000 15:22:32 +0200 |
Hello... I want to write an xsl file to process several xml files, and result (parsing) would depend on a given field value, and I don't see how to do that. Example: xml #1 would be === <?xml version="1.0"?> <mymsg> <qty>123</qty> <type>new</type> <code>5173</code> </mymsg> === and parsed into === <?xml version="1.0"?> <new> <qty>123</qty> <code>5173</code> </new> === when xml #2 would be === <?xml version="1.0"?> <mymsg> <qty>123</qty> <type>cancel</type> <code>5173</code> </mymsg> === and parsed into === <?xml version="1.0"?> <cancel> <code>5173</code> </cancel> === In this example, parsing depend on <type> value. If somebody could help... (some pointers to tutorials where I could have find an answer are welcome !) Thank you -- Joseph XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: can you nest xsl:if with in xsl, David Carlisle | Thread | Re: one xsl file for two parsings, Dan Morrison |
RE: Is it time for an XSLT-list?, Medina, Edward | Date | RE: accessing lookup table in XSL s, Medina, Edward |
Month |