using one xslt for 3 xml documents

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Onzi
    New Member
    • May 2010
    • 1

    using one xslt for 3 xml documents

    I would like to know how to create a xml stylesheet that can take 3 xml documents and transform it into one.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    if I remember right, you can import XML files (don’t know the syntax yet)

    Comment

    • rski
      Recognized Expert Contributor
      • Dec 2006
      • 700

      #3
      I don't think you can import one XML into another.
      But you can read XML from xslt

      Code:
      <xsl:variable name="xmlfile" select="document('xmlfile.xml')/rootElement"/>
      and read it for example like that
      Code:
      <xsl:value-of select="$xmlfile/rootElement/childElement"/> </Price>
      You can of course read more than one XML file.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Code:
        <xsl:variable name="xmlfile" select="document('xmlfile.xml')/rootElement"/>
        that’s what I meant.

        Comment

        Working...