Expand my Community achievements bar.

Using XSL to tranform xml in Livecycle designer es3

Avatar

Former Community Member

Hi,

I have a dynamic form (.xdp), an .xml data file binded to it, we need to make many manupulations to the text (the below xml does not have much text to show but that is our purpose)(i.e) to show partial bolds in some sentences etc, we figured out that this is not possible to manipulate the text in XML , so we thought of using XSL to overcome, but here comes the real problem,

i am starting it with real basic xsl-- used  The option Trnsforming Incomimg data, but when i try to preview the .pdf from the designer it throws

XSLT parsing error 1011: Parsing Error (1011):

    systemID:  'file:///C:/Users/c-sds/Desktop/ALC/'

    publicID:  ''

    line:    

    column:    !

Form version is higher than target version. This form may not run properly on target.

Xml:

Xml:

<Correspondance>

<Header>

<CaseNo>Record ID:  02/9441926</CaseNo>

<Barcode>*90002425393011</Barcode>

<CAOAddress>

<Name>SOUTHERN</Name>

<Address>

<AddressLine1>Linetest2</AddressLine1>

<AddressLine2>Linetest1</AddressLine2>

<city>XXXX</city>

<state>xx</state>

<zip>xxxxx</zip>

<Replyzip>xxxxx-xxxx</Replyzip>

</Address>

<PhoneNo>412-565-2232</PhoneNo>

<FaxNo>412-565-5179</FaxNo>

</CAOAddress>

<MailDate>Mail Date:  04/05/2013</MailDate>

<ClientAddress>

<Name>\b.INTERNET EXPLORER\b0.</Name>

<PaymentName></PaymentName>

<AlternateName></AlternateName>

<Address>

<AddressLine1>19</AddressLine1>

<AddressLine2></AddressLine2>

<city>ASDF</city>

<state>xx</state>

<zip>1xxx5</zip>

</Address>

<PhoneNo></PhoneNo>

</ClientAddress>

</Header>

<Correspondance>

my xsl:

<?xml version="1.0"?>

<xsl:stylesheet

xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >

<xsl:template match="Header">

      <xsl:text>CaseNo</xsl:text>&nl;

    <xsl:if test="//Correspondance/Header/CaseNo">

      <xsl:value-of select="//Correspondance/Header/CaseNo"/>&nl;

    </xsl:if>

            </xsl:template>

            </xsl:stylesheet>

i am just trying ot field by field in xsl but it doest seem to work any way

Thanks in Advance

V sri


0 Replies