Hallo zusammen,
ich hab ein XSL geschrieben, um mein XML für InDesign passend umzustrukturieren. Nur leider funktioniert's nicht, wenn ich beim XML-Import das XSL anwende.
Es kommt keine Fehlermeldung. Improtiert wird nichts. Und ich find keinen Fehler im XSL. Vielleicht überseh ich ja was Naheliegendes, weil ich einfach schon zu lange drauf schau.
Ach ja: Das XML importiert er mir ohne XSL einwandfrei.
XML-Script:
<?xml version=“1.0“ encoding=“UTF-8“?>
<RFM-Formular>
<subkategorie>
RIS-PACS-Workstations</subkategorie>
<produktbezeichnung>
Test IT-RIS-PACS-Workstations</produktbezeichnung>
<tf_ris_pacs>
<tdz1>ja</tdz1>
<tdz2/>
<tdz3>ja</tdz3>
<tdz4/>
<tdz5>ja</tdz5>
<tdz6/>
<tdz7>ja</tdz7>
<tdz8/>
<tdz9/>
<tdz10>ja</tdz10>
<tdz11/>
<tdz12>ja</tdz12>
<tdz13/>
<tdz14>ja</tdz14>
<tdz15/>
<tdz16>ja</tdz16>
<tdz17>ja</tdz17>
<tdz18>ja</tdz18>
<tdz19>ja</tdz19>
<tdz20>ja</tdz20>
<tdz21/>
<tdz22/>
<tdz23/>
<tdz24/>
<abfrage_ft/>
<antwort_ft>Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test Test </antwort_ft>
</tf_ris_pacs>
<tf_spez_fa>
<tdz1/>
<tdz2/>
<tdz3/>
<tdz4/>
<tdz5/>
<tdz9/>
<tdz10/>
<tdz11/>
<tdz12/>
<tdz13/>
<abfrage_ft/>
<antwort_ft/>
</tf_spez_fa>
<tf_cad>
<tdz1/>
<tdz2/>
<tdz3/>
<tdz4/>
<tdz5/>
<tdz9/>
<tdz10/>
<tdz11/>
<tdz12/>
<tdz13/>
<abfrage_ft/>
<antwort_ft/>
</tf_cad>
<tf_spracherk>
<tdz1/>
<tdz2/>
<tdz3/>
<tdz4/>
<tdz5/>
<abfrage_ft/>
<antwort_ft/>
</tf_spracherk>
<tf_mammo_work>
<tdz1/>
<tdz2/>
<tdz3/>
<tdz4/>
<tdz5/>
<abfrage_ft/>
<antwort_ft/>
</tf_mammo_work>
<td_eingabe>
<fliesstext>
<abfrage_ft/>
<antwort_ft/>
</fliesstext>
</td_eingabe>
<bild1 xmlns:xfa=“http://www.xfa.org/schema/xfa-data/1.0/“ xfa:contentType=“image/jpg“ href=““></bild1>
<bild2 xmlns:xfa=“http://www.xfa.org/schema/xfa-data/1.0/“ xfa:contentType=“image/jpg“ href=““></bild2>
<notizfeld/>
<hauptkategorie>IT-Systeme</hauptkategorie>
</RFM-Formular>
XSL dazu:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:element name="RFM-Formular">
<xsl:copy-of select="RFM-Formular/hauptkategorie"/>
<xsl:copy-of select="RFM-Formular/subkategorie"/>
<xsl:copy-of select="RFM-Formular/produktbezeichnung"/>
<xsl:copy-of select="RFM-Formular/bild1"/>
<xsl:copy-of select="RFM-Formular/bild2"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/antwort_ft"/>
<xsl:element name="tf_ris_pacs">
<xsl:element name="produktbez_table"><xsl:value-of select="RFM-Formular/produktbezeichnung"/></xsl:element>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz1"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz2"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz3"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz4"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz5"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz6"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz7"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz8"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz9"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz10"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz11"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz12"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz13"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz14"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz15"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz16"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz17"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz18"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz19"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz20"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz21"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz22"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz23"/>
<xsl:copy-of select="RFM-Formular/tf_ris_pacs/tdz24"/>
</xsl:element>
<xsl:copy-of select="RFM-Formular/notizfeld"/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Hoffe, ihr blickt durch und könnt mir bei der Fehlersuche weiterhelfen.
Danke euch.
Schöne Grüße
MayB86