[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

display question with xsl:when

Subject: display question with xsl:when
From: Jignesh Shah <jhshahus@xxxxxxxxx>
Date: Tue, 11 Oct 2005 11:16:05 -0700 (PDT)
display question
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.