RE: mixed-content values

Subject: RE: mixed-content values
From: David Schach <davidsch@xxxxxxxxxxxxx>
Date: Sun, 24 Jan 1999 19:33:16 -0800
Assuming you want to output text/plain but not iso-8859-1 then you need to
use templates.

<xsl:template match = "Content-Type//textnode()">
	<xsl:value-of />
</xsl:template>

<xsl:template match = "Content-Type/charset">
<!-- leave this empty so it doesn't get processed -->
</xsl:template>

<xsl:template match = "Content-Type>
	<xsl:apply-templates />
</xsl:tempate>


> -----Original Message-----
> From:	Borden, Jonathan [SMTP:jborden@xxxxxxxxxxxx]
> Sent:	Sunday, January 24, 1999 3:29 PM
> To:	XSL-List
> Subject:	mixed-content values
> 
> hello,
> 
> 	I am trying to ouput the text in a mixed content element using XSL
> but I'm
> not sure how to specify the PCDATA part without the text from child
> elements. For example
> 
> <Content-Type><charset>iso-8859-1</charset>text/plain</Content-Type>
> 
> What I would like to do is:
> 	<xsl:choose><xsl:when match="Content-Type[text() = 'text/plain']">
> ...
> 
> but this yeilds: "iso-8859-1text/plain"
> 
> or even:
> 
> 	<xsl:value-of select="Content-Type/text()" />
> 
> but I get an error (i am using IE5b2)
> 
> Jonathan Borden
> http://jabr.ne.mediaone.net
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread