Subject: [xsl] display question with xsl:when From: Jignesh Shah <jhshahus@xxxxxxxxx> Date: Tue, 11 Oct 2005 11:16:05 -0700 (PDT) |
Hi, I have a template and I want to display the template in a readble format through the stylesheet. I have the following in xml: <ObjectInstance name="InternetDevice"> <ObjectInstance name="Server"> <Parameter> <Name>Myvariable</Name> <Value>true</Value> </Parameter> <tc:choose> <tc:when test="VAR(name=/my/version,defaultValue=14)>12"> <Parameter> <Name>parameter2</Name> <Value>30</Value> </Parameter> </tc:when> <tc:otherwise> <Parameter> <Name>parameter2</Name> <Value>15</Value> </Parameter> </tc:otherwise> </tc:choose> </ObjectInstance> </ObjectInstance> and I want to display it as: InternetDevice.Server Myvariable true when {(test="VAR(name=/cpe/version,defaultValue=14)>12) parameter2 30 } otherwise { parameter2 15 } I got the first part displaying InternetDevice and Myvariable... my question is how do I display the whole test condition in when(not the result of test condition but the text for when condition) thanks, Jhs __________________________________ Start your day with Yahoo! - Make it your home page! http://www.yahoo.com/r/hs
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] encoding on parameters fo, Michael Kay | Thread | [xsl] String replacement in include, Rush Manbert |
RE: [xsl] encoding on parameters fo, Michael Kay | Date | Re: [xsl] encoding on parameters fo, Colin Paul Adams |
Month |