XML to XHTML using XSL - Getting Element text

K

KDawg44

Hi,

How can I use XSL to get to the text within an element?

For example, say I have the following XML:

<sunday>
<am>Leisure Day</am>
<pm>3:00 Tigers Game</pm>
</sunday>

how can I extract the word sunday?

Thanks

Kevin
 
B

Bjoern Hoehrmann

* KDawg44 wrote in comp.text.xml:
How can I use XSL to get to the text within an element?

For example, say I have the following XML:

<sunday>
<am>Leisure Day</am>
<pm>3:00 Tigers Game</pm>
</sunday>

how can I extract the word sunday?

That's the element (type) name, check out the local-name(), name(), and
namespace-uri() functions in the spec, <http://www.w3.org/TR/xpath>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top