|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Ouput escaping / XPath
Hi everyone, I'm having a problem with the <xsl:message> element. The error message I want to output lists the element of the source-tree where the error occured. I tried to output the text with: <xsl:message> <xsl:text disable-output-escaping="yes>Error at <Elementname></text> </xsl:message> If also tried to see what result I get by just using the <xsl:text> element. Either way, I can't get it to print '<Elementname>' either to the commandline or into the result-tree. Is it possible at all? My other issue with XPath: I have a source like this: <Text> some <b>foo <!-- replace this --></b> words </Text> Once I reach the <Text> element I copy to the result-tree using: <xsl:copy-of select="./child::node()"/> This obviously copies everything, even the comment. Apparently I would like to copy everything except the comment as to get the result: some <b>foo </b> words I've been experimenting with "./child::element() | ./child::text()" as well as "./child::node() except ./descendant::comment()" and a couple other combinations. The element() function seems to copy the comment as well. What am I doing wrong here? Your help is much appreciated. Manuel Baehnisch
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








