Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: mixed content processing with xsl >Thread Next - Re: mixed content processing with xsl Re: mixed content processing with xslTo: NULL Date: 6/1/2005 11:49:00 AM your XPath expression is a:document/content/*/text does your input xml document have the prefix on all the elements. This expression will return null since the 'text' elements are not in the namespace "a". try using a:document/a:content//a:text Also, you can omit the * for descendants. thanks, swapna "the_Jackal" <presley.david@g...> wrote in message news:1117516679.874942.303750@f...... > my schema captures all the necesary content when exporting from MS-Word > (using true XML) > > from XSL - i have the same sort of thing using the "*" for headings and > its fine > the schema allows for mixed content also in the content element > > > ** XML ** > <text>the lazy <text_bold>cow</text_bold> got eaten by a hungry > <text_italic>fox</text_italic></text> > > ** XSL ** > --- > <xsl:template match="a:document/content/*/text"> > <p><xsl:value-of select="node()"/></p> > </xsl:template> > > <xsl:template match="a:document/content/*/text_bold"> > <strong><xsl:value-of select="node()"/></strong> <!-- bold --> > </xsl:template> > > <xsl:template match="a:document/content/*/text_italic"> <!-- italic --> > <em><xsl:value-of select="node()"/></em> > </xsl:template> > | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
