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

Re: super basic xsl question

Subject: Re: super basic xsl question
From: JBryant@xxxxxxxxx
Date: Thu, 13 Jan 2005 11:09:33 -0600
jeb boniakowski
Don't have time for a long reply, but try xsl:copy-of

Jay Bryant
Bryant Communication Services
(on contract at Synergistic Solution Technologies)




Jeb Boniakowski <jeb@xxxxxxxxxxx> 
01/13/2005 10:58 AM
Please respond to
xsl-list@xxxxxxxxxxxxxxxxxxxxxx


To
xsl-list@xxxxxxxxxxxxxxxxxxxxxx
cc

Subject
 super basic xsl question






Thanks to everyone on the list that helped me with my last problem.  I 
still have some fundamental misunderstanding of how xsl is supposed to 
work, because I can't figure out how to do this:

<xmlroot>
  <child>some text</child>
  <child><a href="">a link</child>
</xmlroot>

and convert it to say...

<ul>
  <li>some text</li>
  <li><a href="">a link</child>
</ul>

I've tried various combos like:
<xsl:template match="child">
                 <xsl:value-of select="."/>
</xsl:template>

but that means I lose the <a> tags.

I thought something with <xsl:copy> would work, but that gives me the 
context node, and furthermore, it doesn't give me the children, so it 
does the opposite.  Then I thought fiddling with the 'select' expr in 
the value-of tag would do it, but I can't figure out if there's a 
magical combination of XPath slang that means, "whatever the hell is 
below here, be it tags or text, i want them".

jeb.

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.