Christopher,
in all intents and purposes, the code you sent works, but there are a few instances where I am left with the following:


<image xmlns="" src="artistImage/32/228/202/1.jpg" />

i.e. an xmlns=""

Anything we can do about those?

Peter
On 2 Apr 2004, at 17:23, Christopher Painter-Wakefield wrote:





I think maybe you are missing the context for the code that was supplied.
It looks to me as if it was intended to be used within another stylesheet
(e.g., "priority='-1'"). Here is a complete stylesheet that should work if
you apply it as a separate transform (I tested it briefly):


-----------------cleanup.xsl-------------------
<?xml version="1.0"?>
<xsl:stylesheet
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
      version="1.0"


<xsl:template match="*"> <xsl:element name="{local-name()}"> <xsl:apply-templates select="@*|node()"/> </xsl:element> </xsl:template>

<xsl:template match="@*|text()">
      <xsl:copy/>
</xsl:template>

</xsl:stylesheet>
-----------------------------------------------

If you want to not lose comments and that sort of thing, you may need to
add templates, but this will copy everything that counts.


-Christopher



|---------+---------------------------->
|         |           beyaNet          |
|         |           Consultancy      |
|         |           <[EMAIL PROTECTED]|
|         |           .com>            |
|         |                            |
|         |           04/02/2004 11:08 |
|         |           AM               |
|         |           Please respond to|
|         |           users            |
|         |                            |
|---------+---------------------------->
---------------------------------------------------------------------- ----------------------------------------|
| |
| To: [EMAIL PROTECTED] |
| cc: |
| Subject: Re: XHTML/XSLT issue |
---------------------------------------------------------------------- ----------------------------------------|




Ugo,
the code you sent even strips out all of the html and leaves only the
values passed into the xslt page! All I want is to be able to strip out
the xml code that appears within the html tags ;-)
what do I need to do?

Peter
On 2 Apr 2004, at 15:54, Ugo Cei wrote:

    <xsl:element name="{local-name()}">
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates mode="copy"/>
    </xsl:element>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to