[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] how to insert the *complete* content of a node


Subject: RE: [xsl] how to insert the *complete* content of a node
From: David.Pawson@xxxxxxxxxxx
Date: Fri, 21 Mar 2003 14:07:06 -0000

<grin/> Got me too!

Try 
<xsl:template match="mytag">
  <xsl:copy>
    <xsl:copy-of select="*|@*"/>
  </xsl:copy>
</

Instead of copying the value of the contents,
copies the contents and its markup.

HTH DaveP


> I've a problem I can't resolve:
> 
> I have some node that may contain *any* text, including xml/html-like
> text.
> I mean something like:
> 
> <mytag>blabla <foo>foo text</foo> other stuff </mytag>
> 
> I have to produce the complete content of the mytag tag:
> 
> blabla <foo>foo text</foo> other stuff 
> 
> I've tried some combination, but I still can't do it,
> the problem is that I do not know *which* tags and *how many* could be
> nested in the mytag tag.
> 
> may anyone help me?
> 
> thanks,
> Danilo.
> 
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

- 

NOTICE: The information contained in this email and any attachments is 
confidential and may be legally privileged. If you are not the 
intended recipient you are hereby notified that you must not use, 
disclose, distribute, copy, print or rely on this email's content. If 
you are not the intended recipient, please notify the sender 
immediately and then delete the email and any attachments from your 
system.

RNIB has made strenuous efforts to ensure that emails and any 
attachments generated by its staff are free from viruses. However, it 
cannot accept any responsibility for any viruses which are 
transmitted. We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email 
and any attachments are those of the author and do not necessarily 
represent those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk 

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



Current Thread