|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] How Do I Select A Section of XML Based On A Code Value
Hi, I have an xml something like this: <VehInfo> <ModelYear>2004</ModelYear> <Model>Ford</Model> <UsageInfo> <UsageInfoCode>Work</UsageInfoCode> </UsageInfo> </VehInfo> <VehInfo> <ModelYear>1994</ModelYear> <Model>Toyota</Model> <UsageInfo> <UsageInfoCode>Pleasure</UsageInfoCode> </UsageInfo> </VehInfo> and want to transform this into xml using xsl, selecting the correct section based on the <UsageInfoCode> tag. For example, if I am to select using an "UsageInfoCode" of "Work", then I want the output xml to look like this: <VehInfo> <ModelYear>2004</ModelYear> <Model>Ford</Model> </VehInfo> Any help would be greatly appreciated! thanks....gary... 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








