[xslt] Output to stdout is different from output to file



Hi,

I have written a stylesheet that assembles its output from pieces in different files by using the document() function (It also applies transformations to the included doc contents using "mode" templates). My first test was to include a single component. I am using xsltproc to do my testing, and when I run it using this command line:
xsltproc --novalid stylesheet.xsl test.xhtm
the correct output shows up on stdout.


However, if I run it using this command line:
xsltproc --novalid -o xform.xhtm stylesheet.xsl test.xhtm
what appears in xform.xhtm is different (and not correct) from what was previously output to stdout.


I have searched the archives and didn't see anything like this mentioned. Is this a known problem, in the sense that everyone knows that you should always redirect stdout to a file if you want the correct output? If that's not the case, I can post again and include all of the xml and xsl files. (It will be sort of a long post, which is why I'm asking this question first.)

If I run "xsltproc --version", it tells me this:
Using libxml 20615, libxslt 10112 and libexslt 810
xsltproc was compiled against libxml 20615, libxslt 10112 and libexslt 810
libxslt 10112 was compiled against libxml 20615
libexslt 810 was compiled against libxml 20615

Thanks,
Rush




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]