Jump to content

Issue with creating a xsl for xml having namespace


Ryan

This topic is 3050 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

    Hi everyone,

    I need your help about my xsl file: 

   When I open 2 files with FM, FM does not show data on the table. However, I have full table with data when I remove namespace of the first line of XML file. Please give me some hints about it. I also attach files for testing.

   My original xml file looks like: 

<Id>urn:uuid:2e57edb1-d897-4d6e-ab98-f8f02a1f8055</Id>
<AnnotationText>DARKNESS_FTR_TEMP_2D_S_EN_51_2K_IOP_OV</AnnotationText>
<IssueDate>2014-09-25T17:50:40-00:00</IssueDate>
<Issuer>CO3</Issuer>
<Creator>ClipsterDCI 4.7.5.2</Creator>
<ContentTitleText>DARKNESS_FTR_TEMP_2D_S_EN_51_2K_IOP_OV</ContentTitleText> 
<ContentKind>feature</ContentKind>

</CompositionPlaylist>

  And I wrote xsl

 

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" xmlns="http://www.digicine.com/PROTO-ASDCP-CPL-20040511#">
<xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"/>

    <xsl:template match="/">
        <FMPXMLRESULT xmlns="
http://www.filemaker.com/fmpxmlresult">
            <ERRORCODE>0</ERRORCODE>
        <METADATA>
<!--  PropertyStrings -->
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="ID" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="AnnotationText" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="IssueDate" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="Issuer" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="Creator" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="ContentTitleText" TYPE="TEXT" />
                <FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="ContentKind" TYPE="TEXT" />

<!--  ReelList -->               

        </METADATA>

        <RESULTSET> 

                          <xsl:for-each select="CompositionPlaylist">

                               <ROW>

                                  <COL><DATA> ......... </COL></DATA>

                                </ROW>

        </RESULTSET>

       </FMPXMLRESULT>
    </xsl:template>
</xsl:stylesheet>

 

 

 

 

test9.xsl

CPL_test.xml

CPL_DARKNESS_FTR_TEMP_2D_S_EN_51_2K_IOP_OV.xml

Link to comment
Share on other sites

This topic is 3050 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.