• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/libxslt-13/libxslt/libxslt/

Lines Matching refs:copy

768     xmlNodePtr copy;
776 "xsltCopyTextString: copy text %s\n",
809 copy = xmlNewCDataBlock(ctxt->output, string, len);
820 copy = xmlNewTextLen(string, len);
821 if (copy != NULL)
822 copy->name = xmlStringTextNoenc;
832 copy = xmlNewTextLen(string, len);
834 if (copy != NULL) {
836 copy = xsltAddChild(target, copy);
837 ctxt->lasttext = copy->content;
842 "xsltCopyTextString: text copy failed\n");
845 return(copy);
864 xmlNodePtr copy;
875 "xsltCopyText: copy CDATA text %s\n",
879 "xsltCopyText: copy unescaped text %s\n",
883 "xsltCopyText: copy text %s\n",
924 copy = xsltAddTextString(ctxt, target->last, cur->content,
931 copy = xmlNewCDataBlock(ctxt->output, cur->content, len);
932 if (copy == NULL)
934 ctxt->lasttext = copy->content;
950 copy = xsltAddTextString(ctxt, target->last, cur->content,
960 copy = xmlNewTextLen(NULL, 0);
961 if (copy == NULL)
964 copy->name = xmlStringTextNoenc;
972 copy->content = cur->content;
974 if ((copy->content = xmlStrdup(cur->content)) == NULL)
985 copy = xmlNewTextLen(cur->content, len);
986 if (copy == NULL)
989 copy->name = xmlStringTextNoenc;
990 ctxt->lasttext = copy->content;
994 if (copy != NULL) {
996 copy->doc = target->doc;
1002 copy = xsltAddChild(target, copy);
1006 "xsltCopyText: text copy failed\n");
1010 if ((copy == NULL) || (copy->content == NULL)) {
1013 "Failed to copy the string.\n");
1016 return(copy);
1026 * Do a copy of an attribute.
1038 xmlAttrPtr copy;
1076 copy = xmlSetNsProp(target, ns, attr->name, value);
1078 copy = xmlSetNsProp(target, NULL, attr->name, value);
1083 if (copy == NULL)
1111 copy->children = txtNode;
1115 return(copy);
1138 xmlAttrPtr copy;
1162 * If attribute has a value, we need to copy it (watching out
1167 copy = xmlNewNsProp(target, copyNs, attr->name,
1171 copy = xmlNewNsProp(target, copyNs, attr->name, BAD_CAST value);
1174 copy = xmlNewNsProp(target, copyNs, attr->name, NULL);
1177 if (copy == NULL)
1193 * Make a copy of the element node @node
1205 * xsltCopy() (for shallow-copying elements via xsl:copy)
1213 xmlNodePtr copy;
1221 copy = xmlDocCopyNode(node, insert->doc, 0);
1222 if (copy != NULL) {
1223 copy->doc = ctxt->output;
1224 copy = xsltAddChild(insert, copy);
1236 xsltCopyNamespaceList(ctxt, copy, node->nsDef);
1238 xsltCopyNamespaceListInternal(copy, node->nsDef);
1243 * copy over all namespace nodes in scope.
1255 copy->ns = xsltGetNamespace(ctxt, node, node->ns, copy);
1257 copy->ns = xsltGetSpecialNamespace(ctxt,
1258 node, node->ns->href, node->ns->prefix, copy);
1267 xsltGetSpecialNamespace(ctxt, node, NULL, NULL, copy);
1272 "xsltShallowCopyElem: copy %s failed\n", node->name);
1274 return(copy);
1286 * Make a copy of the full list of tree @list
1301 xmlNodePtr copy, ret = NULL;
1304 copy = xsltCopyTreeInternal(ctxt, invocNode,
1306 if (copy != NULL) {
1308 ret = copy;
1321 * Do a copy of a namespace list. If @node is non-NULL the
1385 * This is used for copying ns-nodes with xsl:copy-of and xsl:copy.
1427 * <xsl:copy-of select="/foo/namespace::*">, then we need
1490 * Make a copy of the full tree under the element node @node
1506 xmlNodePtr copy;
1548 copy = xsltCopyTreeList(ctxt, invocNode,
1551 copy = NULL;
1552 return(copy);
1554 copy = xmlDocCopyNode(node, insert->doc, 0);
1555 if (copy != NULL) {
1556 copy->doc = ctxt->output;
1557 copy = xsltAddChild(insert, copy);
1561 if (insert->last != copy)
1563 copy->next = NULL;
1621 ns = xmlNewNs(copy, (*curns)->href,
1628 * the generated counterpart on the copy.
1630 copy->ns = ns;
1642 xsltCopyNamespaceList(ctxt, copy, node->nsDef);
1644 xsltCopyNamespaceListInternal(copy, node->nsDef);
1651 if (copy->ns == NULL) {
1653 * This will map copy->ns to one of the newly created
1654 * in-scope ns-decls, OR create a new ns-decl on @copy.
1656 copy->ns = xsltGetSpecialNamespace(ctxt, invocNode,
1657 node->ns->href, node->ns->prefix, copy);
1663 * "Undeclare" the default namespace on @copy with xmlns="".
1665 xsltGetSpecialNamespace(ctxt, invocNode, NULL, NULL, copy);
1672 copy, node->properties);
1682 node->children, copy, isLRE, topElemVisited);
1688 return(copy);
1698 * Make a copy of the full tree under the element node @node
1789 xmlNodePtr copy;
1807 "xsltDefaultProcessOneNode: copy CDATA %s\n",
1810 copy = xsltCopyText(ctxt, ctxt->insert, node, 0);
1811 if (copy == NULL) {
1813 "xsltDefaultProcessOneNode: cdata copy failed\n");
1820 "xsltDefaultProcessOneNode: copy empty text\n"));
1824 "xsltDefaultProcessOneNode: copy text %s\n",
1828 copy = xsltCopyText(ctxt, ctxt->insert, node, 0);
1829 if (copy == NULL) {
1831 "xsltDefaultProcessOneNode: text copy failed\n");
1845 "xsltDefaultProcessOneNode: copy empty text\n"));
1848 "xsltDefaultProcessOneNode: copy text %s\n",
1852 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0);
1853 if (copy == NULL) {
1855 "xsltDefaultProcessOneNode: text copy failed\n");
1945 "xsltDefaultProcessOneNode: copy CDATA %s\n",
1948 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0);
1949 if (copy == NULL) {
1951 "xsltDefaultProcessOneNode: cdata copy failed\n");
1974 "xsltDefaultProcessOneNode: copy empty text\n"));
1977 "xsltDefaultProcessOneNode: copy text %s\n",
1981 copy = xsltCopyText(ctxt, ctxt->insert, cur, 0);
1982 if (copy == NULL) {
1984 "xsltDefaultProcessOneNode: text copy failed\n");
2241 xmlNodePtr cur, insert, copy = NULL;
2354 "xsltApplySequenceConstructor: copy literal result "
2359 * OLD: if ((copy = xsltShallowCopyElem(ctxt, cur, insert))
2363 copy = xmlDocCopyNode(cur, insert->doc, 0);
2364 if (copy == NULL) {
2367 "Failed to copy literal result element '%s'.\n",
2374 copy->doc = ctxt->output;
2375 copy = xsltAddChild(insert, copy);
2378 * OLD: xsltCopyNamespaceList(ctxt, copy, cur->nsDef);
2390 ns = xmlSearchNs(copy->doc, copy, effNs->prefix);
2397 ns = xmlNewNs(copy, effNs->nsName, effNs->prefix);
2402 "Failed to copy a namespace "
2408 copy->nsDef = ns;
2427 copy->ns = xsltGetSpecialNamespace(ctxt, cur,
2428 cur->ns->href, cur->ns->prefix, copy);
2444 if (copy->nsDef ||
2450 NULL, NULL, copy);
2462 xsltAttrListTemplateProcess(ctxt, copy, cur->properties);
2601 "xsltApplySequenceConstructor: copy unescaped text '%s'\n",
2606 "xsltApplySequenceConstructor: copy text '%s'\n",
2698 "xsltApplySequenceConstructor: copy CDATA text %s\n",
2702 "xsltApplySequenceConstructor: copy unescaped text %s\n",
2706 "xsltApplySequenceConstructor: copy text %s\n",
2787 "xsltApplySequenceConstructor: copy node %s\n",
2793 if ((copy = xsltShallowCopyElem(ctxt, cur, insert, 1)) == NULL)
2835 ret = xmlSearchNs(copy->doc, copy, ns->prefix);
2838 xmlNewNs(copy, URI, ns->prefix);
2841 if (copy->ns != NULL) {
2845 copy->ns = xsltGetNamespace(ctxt, cur, copy->ns, copy);
2852 xsltAttrListTemplateProcess(ctxt, copy, cur->properties);
2865 if (copy != NULL)
2866 insert = copy;
3805 * @inst: the element node of the XSLT-copy instruction
3806 * @castedComp: computed information of the XSLT-copy instruction
3808 * Execute the XSLT-copy instruction on the source node.
3819 xmlNodePtr copy, oldInsert;
3857 copy = xsltShallowCopyElem(ctxt, node, ctxt->insert, 0);
3858 ctxt->insert = copy;
3872 * attribute without an intermediate copy of the string value?
3882 copy = xmlNewDocPI(ctxt->insert->doc, node->name,
3884 copy = xsltAddChild(ctxt->insert, copy);
3891 copy = xmlNewComment(node->content);
3892 copy = xsltAddChild(ctxt->insert, copy);
3934 xmlNodePtr copy;
3943 copy = xmlNewDocText(ctxt->output, text->content);
3949 copy->name = xmlStringTextNoenc;
3951 copy = xsltAddChild(ctxt->insert, copy);
3976 xmlNodePtr copy;
4027 copy = xmlNewDocNodeEatName(ctxt->output, NULL, (xmlChar *)name, NULL);
4029 copy = xmlNewDocNode(ctxt->output, NULL, (xmlChar *)name, NULL);
4031 if (copy == NULL) {
4036 copy = xsltAddChild(ctxt->insert, copy);
4111 copy->ns = xsltGetSpecialNamespace(ctxt, inst, nsName, pref, copy);
4115 copy->ns = xsltGetSpecialNamespace(ctxt, inst, nsName, prefix,
4116 copy);
4118 } else if ((copy->parent != NULL) &&
4119 (copy->parent->type == XML_ELEMENT_NODE) &&
4120 (copy->parent->ns != NULL))
4125 xsltGetSpecialNamespace(ctxt, inst, NULL, NULL, copy);
4128 ctxt->insert = copy;
4274 * @inst: the element node of the XSLT copy-of instruction
4275 * @castedComp: precomputed information of the XSLT copy-of instruction
4277 * Process the XSLT copy-of instruction.
4300 "xsl:copy-of : compilation failed\n");
4306 * "The xsl:copy-of element can be used to insert a result tree
6532 xsltRegisterExtElement(ctxt, (const xmlChar *) "copy",
6553 xsltRegisterExtElement(ctxt, (const xmlChar *) "copy-of",