You'll need to supply a minimal sample input document and a minimal
stylesheet to reproduce the problem so we can determine what is going on.
I suspect the problem is you're trying to copy nodes into a comment, which
is why you are getting this warning message. You cannot do the following:
<xsl:comment><xsl:copy-of select="document($file)" /></xsl:comment>
and expect to get "markup" as the content of the comment. This is a bug
that was fixed in Xalan-C 1.3 or 1.4. This also applies to the content of
xsl:attribute and xsl:processing-instruction.
Dave
"Shlomo Shamir"
<[EMAIL PROTECTED] To: <[EMAIL PROTECTED]>
ile.com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: testXSLT copy-of warning
message
06/11/2003 02:30
AM
Please respond
to xalan-dev
Hello,
i'm a Xalan-1.4 user (Linux & Solaris).
I'm using testXSLT, and trying to construct a tree-fragment of an XML file
,which is not the input XML. (it is actually a xsd file, included by
another xsd file, which is the input XML)
I'm trying doing it using the line:
<xsl:copy-of select="document($file)" />
however, the testXSLT outputs the following message:
XSLT warning: Only text nodes can be copied in this context.
The node is ignored, source tree node: #document
i used to use Xalan-1.2, and its testXSLT doesn't have any problems
processing this line
is there another way of constructing a tree-frag from file, or a way to
work around this warning?
tx in advance
- testXSLT copy-of warning message Shlomo Shamir
- Re: testXSLT copy-of warning message Joseph Kesselman
- david_n_bertoni
