xsl-list
[Top] [All Lists]

RE: [xsl] Selecting unparsed text from inside a tag

2008-03-25 02:21:03
I would like to know if there is a way to select everything 
that is inside a tag without parsing it and put it to the 
output, so that if there are other tags (like <br/> or 
<html>) inside our tag then they will also come up. 

The input to an XSLT processor is a tree of nodes. The XSLT processor never
sees lexical XML tags in an unparsed state; the parsing of the XML and
construction of the tree is complete (conceptually, at least) before the
XSLT processor gets to see it. The XSLT processor only sees nodes.

Your questions suggests that you are doing xsl:value-of where you should be
doing xsl:copy-of or xsl:apply-templates.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--