[Top] [All Lists]

Re: [xsl] processing of xml embedded in string

2008-03-31 05:53:11
Christian Wittern wrote:

What I want to do is something like:

 <xsl:template match="str[(_at_)name='textfield']">
     <xsl:variable name="s">
     <xsl:value-of select="." disable-output-escaping="yes"/>
     <xsl:apply-templates select="$s"/>


and then have another template that matches the content:

<xsl:template match="tei:p">

Is that XSLT 1.0 or 2.0? With XSLT 1.0 the value of variable s is a result tree fragment and you would first need to use an extension function (usually exsl:node-set($s)) to convert that to a node-set, then you can use e.g.
  <xsl:apply-templates select="exsl:node-set($s)/*"/>


        Martin Honnen

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>

<Prev in Thread] Current Thread [Next in Thread>