RE: Element with mixed=true, and xsl,xpath

This list is for comments on the W3C specifications. A good place to ask for
XSL and XPath coding advice is the xsl-list at www.mulberrytech.com

Michael Kay
 

> -----Original Message-----
> From: xsl-editors-request@w3.org 
> [mailto:xsl-editors-request@w3.org] On Behalf Of Thomas Solbjør
> Sent: 24 August 2004 19:17
> To: xsl-editors@w3.org
> Subject: Element with mixed=true, and xsl,xpath
> 
> 
> Hi,
> 
> I have an element which is something like this:
> 
> <p>
> This is some text, and at <date>2004-08-24</date> I am writing it.
> </p>
> 
> I want to traverse the whole element and pick up the 
> subelements. Stylus
> Studio HE gives me an overview of the element which looks 
> something like
> this:
> 
> p
> |
> |-- #text
> |
> |-- date
> |
> |-- #text
> |
> |-- date
> |
> |-- #text
> 
> A select="p/*" does not work, I only get the date elements 
> and not any text.
> I guess #text is not treated the same way as the other 
> subelements, but how
> should I do this?
> 
> --
> Thomas
> 
> 
> 

Received on Tuesday, 24 August 2004 18:24:03 UTC