Loading ...
Sorry, an error occurred while loading the content.

combining xml files

Expand Messages
  • Norma Yeazell
    I m trying to combine multiple xml files using entities. My result is one page with an empty table of contents. Do I need to combine files separately from
    Message 1 of 2 , Sep 8, 2004
    • 0 Attachment
      I'm trying to combine multiple xml files using entities. My result is
      one page with an empty table of contents.
      Do I need to combine files separately from formatting? Am I missing
      something?
      Any advise would be appreciated.

      The following is the xml

      <?xml version="1.0"?>
      <!DOCTYPE pm [
      <!NOTATION xml SYSTEM "">
      <!ENTITY BIKE001-001-D00-10-01-0000-271A-A SYSTEM
      "BIKE001-001-D00-10-01-0000-271A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-D00-10-02-0000-364A-A SYSTEM
      "BIKE001-001-D00-10-02-0000-364A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-D00-10-04-0000-540A-A SYSTEM
      "BIKE001-001-D00-10-04-0000-540A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-D00-10-04-0000-740A-A SYSTEM
      "BIKE001-001-D00-10-04-0000-740A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA2-10-01-0000-369A-A SYSTEM
      "BIKE001-001-DA2-10-01-0000-369A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA2-10-02-0000-364A-A SYSTEM
      "BIKE001-001-DA2-10-02-0000-364A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA2-10-03-0000-364A-A SYSTEM
      "BIKE001-001-DA2-10-03-0000-364A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA3-10-01-0000-200A-A SYSTEM
      "BIKE001-001-DA3-10-01-0000-200A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA3-10-01-0000-281A-A SYSTEM
      "BIKE001-001-DA3-10-01-0000-281A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA3-10-01-0000-298A-A SYSTEM
      "BIKE001-001-DA3-10-01-0000-298A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA3-10-01-0100-520A-A SYSTEM
      "BIKE001-001-DA3-10-01-0100-520A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA4-10-02-0000-520A-A SYSTEM
      "BIKE001-001-DA4-10-02-0000-520A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA4-10-02-0000-720A-A SYSTEM
      "BIKE001-001-DA4-10-02-0000-720A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA4-20-01-0000-711A-A SYSTEM
      "BIKE001-001-DA4-20-01-0000-711A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA5-00-00-0000-281A-A SYSTEM
      "BIKE001-001-DA5-00-00-0000-281A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA5-10-00-0000-200A-A SYSTEM
      "BIKE001-001-DA5-10-00-0000-200A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA5-10-00-0000-281A-A SYSTEM
      "BIKE001-001-DA5-10-00-0000-281A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA6-10-03-0000-371A-A SYSTEM
      "BIKE001-001-DA6-10-03-0000-371A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA6-20-01-0000-364A-A SYSTEM
      "BIKE001-001-DA6-20-01-0000-364A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA6-20-04-0000-520A-A SYSTEM
      "BIKE001-001-DA6-20-04-0000-520A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA7-20-12-0000-281A-A SYSTEM
      "BIKE001-001-DA7-20-12-0000-281A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA7-20-12-0000-292A-A SYSTEM
      "BIKE001-001-DA7-20-12-0000-292A-A.xml" NDATA xml>
      <!ENTITY BIKE001-001-DA7-20-12-0000-369A-A SYSTEM
      "BIKE001-001-DA7-20-12-0000-369A-A.xml" NDATA xml>

      ]>
      <pm>
      <chapter>
      <get-data ref="BIKE001-001-D00-10-01-0000-271A-A"/>
      <get-data ref="BIKE001-001-D00-10-02-0000-364A-A"/>
      <get-data ref="BIKE001-001-D00-10-04-0000-540A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA2-10-01-0000-369A-A"/>
      <get-data ref="BIKE001-001-DA2-10-02-0000-364A-A"/>
      <get-data ref="BIKE001-001-DA2-10-03-0000-364A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA3-10-01-0000-200A-A"/>
      <get-data ref="BIKE001-001-DA3-10-01-0000-281A-A"/>
      <get-data ref="BIKE001-001-DA3-10-01-0000-298A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA4-10-02-0000-520A-A"/>
      <get-data ref="BIKE001-001-DA4-10-02-0000-720A-A"/>
      <get-data ref="BIKE001-001-DA4-20-01-0000-711A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA5-00-00-0000-281A-A"/>
      <get-data ref="BIKE001-001-DA5-10-00-0000-200A-A"/>
      <get-data ref="BIKE001-001-DA5-10-00-0000-281A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA6-10-03-0000-371A-A"/>
      <get-data ref="BIKE001-001-DA6-20-01-0000-364A-A"/>
      <get-data ref="BIKE001-001-DA6-20-04-0000-520A-A"/>
      </chapter>
      <chapter>
      <get-data ref="BIKE001-001-DA7-20-12-0000-281A-A"/>
      <get-data ref="BIKE001-001-DA7-20-12-0000-292A-A"/>
      <get-data ref="BIKE001-001-DA7-20-12-0000-369A-A"/>
      </chapter>
      </pm>


      I have added this template to my existing xsl.

      <xsl:template match="get-data">
      <xsl:apply-templates select="document(unparsed-entity-uri(@ref))"/>
      </xsl:template>



      Sincerely,
      Norma Yeazell




      Confidentiality Notice
      The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.
    • Bob Stayton
      Hi, This worked for me using Saxon and xsltproc. What XSLT and FO processor are you using? What happens when you copy some of your data into the main xml file
      Message 2 of 2 , Sep 9, 2004
      • 0 Attachment
        Hi,
        This worked for me using Saxon and xsltproc. What XSLT and FO processor are
        you using?

        What happens when you copy some of your data into the main xml file in place
        of one of the <get-data> elements? If that works, then your processor isn't
        resolving the entityrefs correctly. If that doesn't work, then there is
        something wrong with your stylesheet.

        Bob Stayton
        Sagehill Enterprises
        DocBook Consulting
        bobs@...


        ----- Original Message -----
        From: "Norma Yeazell" <nyeazell@...>
        To: <XSL-FO@yahoogroups.com>
        Sent: Wednesday, September 08, 2004 10:58 AM
        Subject: [XSL-FO] combining xml files


        > I'm trying to combine multiple xml files using entities. My result is
        > one page with an empty table of contents.
        > Do I need to combine files separately from formatting? Am I missing
        > something?
        > Any advise would be appreciated.
        >
        > The following is the xml
        >
        > <?xml version="1.0"?>
        > <!DOCTYPE pm [
        > <!NOTATION xml SYSTEM "">
        > <!ENTITY BIKE001-001-D00-10-01-0000-271A-A SYSTEM
        > "BIKE001-001-D00-10-01-0000-271A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-D00-10-02-0000-364A-A SYSTEM
        > "BIKE001-001-D00-10-02-0000-364A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-D00-10-04-0000-540A-A SYSTEM
        > "BIKE001-001-D00-10-04-0000-540A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-D00-10-04-0000-740A-A SYSTEM
        > "BIKE001-001-D00-10-04-0000-740A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA2-10-01-0000-369A-A SYSTEM
        > "BIKE001-001-DA2-10-01-0000-369A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA2-10-02-0000-364A-A SYSTEM
        > "BIKE001-001-DA2-10-02-0000-364A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA2-10-03-0000-364A-A SYSTEM
        > "BIKE001-001-DA2-10-03-0000-364A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA3-10-01-0000-200A-A SYSTEM
        > "BIKE001-001-DA3-10-01-0000-200A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA3-10-01-0000-281A-A SYSTEM
        > "BIKE001-001-DA3-10-01-0000-281A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA3-10-01-0000-298A-A SYSTEM
        > "BIKE001-001-DA3-10-01-0000-298A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA3-10-01-0100-520A-A SYSTEM
        > "BIKE001-001-DA3-10-01-0100-520A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA4-10-02-0000-520A-A SYSTEM
        > "BIKE001-001-DA4-10-02-0000-520A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA4-10-02-0000-720A-A SYSTEM
        > "BIKE001-001-DA4-10-02-0000-720A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA4-20-01-0000-711A-A SYSTEM
        > "BIKE001-001-DA4-20-01-0000-711A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA5-00-00-0000-281A-A SYSTEM
        > "BIKE001-001-DA5-00-00-0000-281A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA5-10-00-0000-200A-A SYSTEM
        > "BIKE001-001-DA5-10-00-0000-200A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA5-10-00-0000-281A-A SYSTEM
        > "BIKE001-001-DA5-10-00-0000-281A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA6-10-03-0000-371A-A SYSTEM
        > "BIKE001-001-DA6-10-03-0000-371A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA6-20-01-0000-364A-A SYSTEM
        > "BIKE001-001-DA6-20-01-0000-364A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA6-20-04-0000-520A-A SYSTEM
        > "BIKE001-001-DA6-20-04-0000-520A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA7-20-12-0000-281A-A SYSTEM
        > "BIKE001-001-DA7-20-12-0000-281A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA7-20-12-0000-292A-A SYSTEM
        > "BIKE001-001-DA7-20-12-0000-292A-A.xml" NDATA xml>
        > <!ENTITY BIKE001-001-DA7-20-12-0000-369A-A SYSTEM
        > "BIKE001-001-DA7-20-12-0000-369A-A.xml" NDATA xml>
        >
        > ]>
        > <pm>
        > <chapter>
        > <get-data ref="BIKE001-001-D00-10-01-0000-271A-A"/>
        > <get-data ref="BIKE001-001-D00-10-02-0000-364A-A"/>
        > <get-data ref="BIKE001-001-D00-10-04-0000-540A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA2-10-01-0000-369A-A"/>
        > <get-data ref="BIKE001-001-DA2-10-02-0000-364A-A"/>
        > <get-data ref="BIKE001-001-DA2-10-03-0000-364A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA3-10-01-0000-200A-A"/>
        > <get-data ref="BIKE001-001-DA3-10-01-0000-281A-A"/>
        > <get-data ref="BIKE001-001-DA3-10-01-0000-298A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA4-10-02-0000-520A-A"/>
        > <get-data ref="BIKE001-001-DA4-10-02-0000-720A-A"/>
        > <get-data ref="BIKE001-001-DA4-20-01-0000-711A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA5-00-00-0000-281A-A"/>
        > <get-data ref="BIKE001-001-DA5-10-00-0000-200A-A"/>
        > <get-data ref="BIKE001-001-DA5-10-00-0000-281A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA6-10-03-0000-371A-A"/>
        > <get-data ref="BIKE001-001-DA6-20-01-0000-364A-A"/>
        > <get-data ref="BIKE001-001-DA6-20-04-0000-520A-A"/>
        > </chapter>
        > <chapter>
        > <get-data ref="BIKE001-001-DA7-20-12-0000-281A-A"/>
        > <get-data ref="BIKE001-001-DA7-20-12-0000-292A-A"/>
        > <get-data ref="BIKE001-001-DA7-20-12-0000-369A-A"/>
        > </chapter>
        > </pm>
        >
        >
        > I have added this template to my existing xsl.
        >
        > <xsl:template match="get-data">
        > <xsl:apply-templates select="document(unparsed-entity-uri(@ref))"/>
        > </xsl:template>
        >
        >
        >
        > Sincerely,
        > Norma Yeazell
        >
        >
        >
        >
        > Confidentiality Notice
        > The information contained in this e-mail is confidential and intended for
        use only by the person(s) or organization listed in the address. If you have
        received this communication in error, please contact the sender at O'Neil &
        Associates, Inc., immediately. Any copying, dissemination, or distribution
        of this communication, other than by the intended recipient, is strictly
        prohibited.
        >
        >
        >
        >
        >
        > Yahoo! Groups Links
        >
        >
        >
        >
        >
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.