Hey there,
I'm trying to turn XML into plaintext to be added to text field in a form, using the transform option in the XSLT service. However, whenever I put in the tag <xsl:output method="text" />, it seems to fail. I'm just using the test functionality in Workbench even (LiveCycle ES sp2).
Here's my sample XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" />
<xsl:template match="/">
<xsl:value-of select="//user"/>
</xsl:template>
</xsl:stylesheet>
Here's my simple XML:
<users><user>Dave</user></users>
Whenever I try to test it, I get an invocation error.
Now if I do this XSLT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
<xsl:template match="/">
<html>
<xsl:value-of select="//user"/>
</html>
</xsl:template>
</xsl:stylesheet>
..I get no error, but it's got the html tags, which I don't want.
What am I missing here? Does LiveCycle not support the output tag? Or am I making a dumb mistake somewhere?
Thanks!