[oXygen-user] oXygen XSLT transformation scenario with -it:main and xsl:result-document

George Cristian Bina george at oxygenxml.com
Mon May 5 15:49:20 CDT 2014


Hi David,

I cannot reproduce this problem, here it is the test stylesheet I used:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version="2.0">
   <xsl:template name="main">
     <xsl:result-document href="x.xml">
       <x>test</x>
     </xsl:result-document>
   </xsl:template>
</xsl:stylesheet>

the x.xml file is created next to the stylesheet.

Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

On 5/5/14, 6:07 PM, David Sewell wrote:
> I have a question about whether something in oXygen is a bug, or intended.
>
> Suppose I have an XSLT transformation that uses a named template as its initial
> template, and that writes output documents using xsl:result-document.
>
> When I configure a transformation scenario in oXygen, it seems that I need to
> declare a dummy output file using "Save as", or no output is written at all
> (despite the xsl:result-document instruction). In other words, I have to put
> something like
>
>   	Save as: dummy-out.xml
>
> and then xsl:result-document succeeds in writing output.
>
> Is this a bug or a feature?
>
> David
>


More information about the oXygen-user mailing list