new IsXmlExpression(element, elementSchema),
xmlDoctype, sgmlDoctype);
}
private Expression flattenXmlns(OutputElement element) {
Schema elementSchema = element.getSchema();
String xmlns = elementSchema.getNamespaceUri();
List<Expression> concatList = Lists.newArrayList();
concatList.add(new StringConstant(element, elementSchema, " xmlns"));
if (elementSchema.getTagPrefix() != null) {
concatList.add(new StringConstant(element, elementSchema, ":"));
concatList.add(new StringConstant(element, elementSchema,
elementSchema.getTagPrefix()));
}
concatList.add(new StringConstant(element, elementSchema, "=\""));
concatList.add(new StringConstant(element, elementSchema,
CharEscapers.xmlEscaper().escape(xmlns)));
concatList.add(new StringConstant(element, elementSchema, "\""));