<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    <xsl:output method="text"/>
    <xsl:template match="/*">this is a sample text</xsl:template>

This should help.


Le 23/02/2012 04:51, Mark Rubelmann a écrit :
Hi all,

I'm completely new to Saxon and xslt so please forgive me if this has been answered a million times already.  I'm using Saxon in C# and I'm trying to generate some simple plain text output with xslt.  Despite my best efforts, I haven't been able to make it write anything other than well-formed XML.  Putting in raw text without a root node just throws an exception.  I've tried setting the conformance of my XmlWriter to fragment instead of document but that gave me a different error.  I don't have any of my source code in front of me at the moment and I also don't remember the exact errors, but I just wanted to see if anyone has worked through the same issue.  I can send code snippets tomorrow if it's helpful.

------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ saxon-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/saxon-help