Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

NAMESPACE XML RTF

Received Response
31
Views
1
Comments
Rank 1 - Community Starter

Summary

NAMESPACE XML RTF

Content

XML Archive:

<?xml version="1.0" encoding="UTF-8"?>

<ns2:Documento xmlns:ext="http://www.work1.cl" xmlns:ns2="http://www.work2.cl" xmlns:ns3="http://www.w3.org/2000/09/xmldsig#">

  <ns2:Contenido>

    <ext:Resolucion>

      <ext:Destinatarios>

        <ext:Destinatario>

          <ext:Nombre>AFP CUPRUM S.A.</ext:Nombre>

          <ext:Direccion>SANTIAGO</ext:Direccion>

          <ext:Email></ext:Email>

          <ext:Principal>false</ext:Principal>

        </ext:Destinatario>

        <ext:Destinatario>

          <ext:Nombre>COMPIN REGIÓN DE ARICA Y PARINACOTA</ext:Nombre>

          <ext:Direccion></ext:Direccion>

          <ext:Principal>false</ext:Principal>

        </ext:Destinatario>

        <ext:Destinatario>

          <ext:Nombre>Sonia Araya</ext:Nombre>

          <ext:Direccion></ext:Direccion>

          <ext:Email></ext:Email>

          <ext:Principal>true</ext:Principal>

        </ext:Destinatario>

      </ext:Destinatarios>

    </ext:Resolucion>

  </ns2:Contenido>

</ns2:Documento>

 

Template RTF:

<?start:body?>

<?namespace:ns2=http://www.work1.com?>

<?namespace:ext=http://www.work2.com?>

 

<?for-each:ns2:Documento/ns2:Contenido/ext:Resolucion/ext:Destinatarios/ext:Destinatario?>

<?ns2:Documento/ns2:Contenido/ext:Resolucion/ext:Destinatarios/ext:Destinatario/ext:Nombre?>

<?end for-each?>

<?end:body?>

 

Problem:

Does not print the contents of the Name tag when generating the template in PDF format.

The content of the Name tag is printed when it is outside the for-each element, but when it is inside the for-each element it does not print:

Example: <?ns2:Documento/ns2:Contenido/ext:Resolucion/ext:Destinatarios/ext:Destinatario/ext:Nombre?>.

 

Can you help me, please??

 

I am attentive to your comments. Thanks.

 

 

Technical data:

1.- Encoding "UTF8" xml archive

2.- Using BI Publisher Plugin for office word 2007.

3.- extensión archive Template.rtf

4.- transform template to pdf format.

Tagged:

Answers

  • Rank 4 - Community Specialist

    You don't need to reference the whole xml-tree again, when you're inside a group.

    So <?Nombre?> should be enough inside the for-each

Welcome!

It looks like you're new here. Sign in or register to get started.