Is it possible to read the string along with nodes under a node

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kannadhasan
    New Member
    • Mar 2008
    • 2

    Is it possible to read the string along with nodes under a node

    Input xml:
    ....
    <p>
    <b>Sample text:</b>
    <nbsp/>these are some sample text<i>text continues here</i>
    </p>
    ...
    out put I need when I read the <p> tag from an xsl document is:

    <b>Sample text:</b>
    <nbsp/>these are some sample text<i>text continues here</i>

    when I read the input xml from an xsl document to process and convert to another xml doc, is it possible to read the strings under the current node along with all child nodes under that
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    You probably need some variation of <xsl:copy-of select="xpath"/>
    as opposed to <xsl:value-of select="xpath"/>

    Comment

    Working...