Subject: RE: Unparsed-text-available returns true for XML files, so how do I distinguish XML files?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Sun, 3 Jan 2010 18:59:54 -0000
|
> But, I've just discovered that unparsed-text-available() will
> return true for xml files. So, I don't know how to
> distinguish within my xslt which files are unparsed and which
> ones aren't.
if unparsed-text-available() returns true, doc-available() will distinguish
XML from non-XML files. (Though not without some cost: an extension function
might do the job faster.)
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
| Current Thread |
|
ac - 3 Jan 2010 17:50:03 -0000
Michael Kay - 3 Jan 2010 19:00:17 -0000 <=
|
|