Project

Profile

Help

Revision 797dc683

Added by Michael Kay over 10 years ago

Fix bug 3328917 saxon:doctype doesn't allow text nodes

View differences:

latest9.3/hej/net/sf/saxon/expr/instruct/Doctype.java
13 13
import net.sf.saxon.tree.tiny.TinyBuilder;
14 14
import net.sf.saxon.tree.util.Navigator;
15 15
import net.sf.saxon.type.ItemType;
16
import net.sf.saxon.type.Type;
16 17

  
17 18
import java.util.Iterator;
18 19

  
......
305 306
                    write(out, " SYSTEM \"" + nsystem + "\" ");
306 307
                }
307 308
                write(out, ">");
309
            } else if (child.getNodeKind() == Type.TEXT) {
310
                write(out, child.getStringValue());
308 311
            } else {
309 312
                XPathException e = new XPathException("Unrecognized element " + localname + " in DTD output");
310 313
                e.setXPathContext(context);

Also available in: Unified diff