Hinweis: Eintrag wurde aus altem Forum importiert. Ggf. kann es dadurch zu Darstellungsproblemen kommen.
Hier ein Post, den ich schon mal auf Filemaker Xmltalk gepostet habe.
http://64.124.46.145/XML?50@251.fdIxadf ... .ee7a08e/2
Ggf. weiss hier ja jemand eine Lösung. Es geht um die Übergabe von Headerdaten ims BMECat-Format und das mergen des xml exports aus der header-datei mit der Article-Datei.
Die in xml talk beschriebene Lösung funktioniert nur begrenzt, denn eigentlich möchte ich etwa 6 verschiedene Dateien mit unterschiedlichen Bäumen miteinander über <xsl:key ..> und <xsl:copy-of document()> verknüpfen. (Catalog Structure, Article features, classification system ...).
How do I merge 2 XML Documents with Filemaker?
The Setup is as Follows:
1rst Database containing all the Field for a Catalog Header
2nd Database containing all the Product Details
Header data is referenced in Product Database and vice-versa to store
specific prices for different customers. Actually the address data
eventually will come from a third database containing all our Addresses.
Both should be dynamically generated.
The XML is as follows:
<CATALOG>
<HEADER>
<BUYER>
A very long street address
</BUYER>
<SUPPLIER>
Another address
</SUPPLIER>
<HEADER>
<PRODUCT>
<PROD_ID>123456<PROD_ID>
<PROD_DESCRIPTION>Sample T-Shirt<PROD_DESCRIPTION>
<PRICE>12.95<PRICE>
</PRODUCT>
<PRODUCT>
<PROD_ID>965478<PROD_ID>
<PROD_DESCRIPTION>Another T-Shirt<PROD_DESCRIPTION>
<PRICE>10.95<PRICE>
</PRODUCT>
...
</CATALOG>
No Problem if I hard code the header in the XSL, but I cannot use
<HEADER>
<xsl:apply-templates select="document('Header.xml')" />
<xsl:apply-templates />
</HEADER>
because the document() calls and <xsl:include> calls seem to be ignored by
fmxml parser.




