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

RE: Modifying select attribute values in XHTML

Subject: RE: Modifying select attribute values in XHTML
From: "Brook Ellingwood" <belling@xxxxxxx>
Date: Fri, 18 Aug 2006 08:45:31 -0700
select style
Yes, that's the output I was looking for, but until Wendell pointed out
my matching error, I couldn't get it.

Thanks for the help.

-- Brook

-----Original Message-----
From: Mukul Gandhi [mailto:gandhi.mukul@xxxxxxxxx]
Sent: Thursday, August 17, 2006 5:55 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Modifying select attribute values in XHTML

The stylesheet I posted when applied to XML (the XML you posted was not
well-formed, a /select> tag was missing, which I corrected):

<xhtml>
<div style="width:570px;text-align:center;">
 <img src="/path/to/img.jpg" width="570" height="100" border="0"
alt="Alt text"/>
 <p style="margin:10px 0 0 0;" class="class">Display copy<br/>  <a
href="/link">Linked text</a><br/>  <form>
  <select style="margin-top:0px;" size="1" name="selectMenu">
   <option value="#" selected="selected">Choose an option</option>
   <option value="one.html">One</option>
   <option value="two.html">Two</option>
  </select>
 </form>
 </p>
</div>
<br/>
</xhtml>

Produces output:

<?xml version="1.0" encoding="UTF-8"?>
<xhtml>
<div style="width:570px;text-align:center;">
 <img src="http//images.example.com/path/to/img.jpg" width="570"
height="100" bo rder="0" alt="Alt text"/>  <p style="margin:10px 0 0 0;"
class="class">Display copy<br/>  <a
href="http//www.example.com/link">Linked text</a> <br/>  <form>
  <select style="margin-top:0px;" size="1" name="selectMenu">
   <option value="#" selected="selected">Choose an option</option>
   <option value="one.html">One</option>
   <option value="two.html">Two</option>
  </select>
 </form>
 </p>
</div>
<br/>
</xhtml>

Isn't this what you want?

This looks more concise than the logic you have posted..

Your logic also seems correct (with a minor correction, as Wendell has
suggested)

On 8/18/06, Brook Ellingwood <belling@xxxxxxx> wrote:
> Hi Mukul,
>
> I think this may be identical to what I had earlier when I began
> working on this. I know I just tried it again at got the same results:

> it outputs the value of the attributes as text node children of the
> elements, and fails to go deeper than one level down the descendant
> axis.
>
> If I could get it to follow the tree down the descendant axis, the
> formatting of the output should be fairly straight forward.
>
> -- Brook

--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com

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.