I have a XML fragment that looks like this:
Now from within an XSLT I'd like to grab the contents of the paragraph __including__ the <br/> tags. When I try:Code:... <paragraph heading="Introduction"> Before you begin you should know: -thing 1<br/> -thing 2<br/> -thing 3<br/> </paragraph> ...
I lose the <br/> tags. When I tried replacing the <value-of> with <copy-of> I get the whole text between (and including) the <paragraph> tags.Code:<xsl:for-each select="."> <p><xsl:value of select="."/></p> </xsl:for-each>
How do I just the contents? I've taken a look at the different axes but those don't seem to help. As a last resort I wrap the <br> around the text but that doesn't seem to be too elegant a solution.





Reply With Quote