The error occurring here is with the XSLT, not the batch process. The transformation is failing. Very likely, what is happening is that you are using the xsl:strip whitspace element and that isn't allowed. This is because XSLT's are compiled for performance. See this: https://secure-web.cisco.com/1yJdlFIuMzVttsS5huI02arMnaG27t0I2thMcMfjyweuJl9ZGU_gr5yqCHwohwU4Hfa-qcm3X38PTUADeGF3JKQ052P26lDCqV9FvDnjHmVZbyAqYhCs2aW-vcSTS4RabF4uoO51E68FJkv-erg3v26Xd-vBv5BDi1FMe7GhWpdXcYG67EVT87YlkjY9DgEpbzj5Ko5jppbjvqPl4O5Q4yVzwp3hHzdFKckxluF9La21G8OKvGo3evfopzxM0IISoLva-erkOs8Sf8EgEyXYQEovBT8HC4o5zAc-OagnMWjhfJ-ExAwgoTfK66iKMliIZeZQKcfcLRB93wL3xMWMtlywRse5UrgRv8ViqC-WtaP1Osi0YShk6mNwgYD_QMlTdpqn_DVTtBWa6DN0NBizbV6nFDEk9zuHycn87SDJx-V0LhvlzcyqfiSfT0pKU9JRZh_OlXyTnuoJ8IzH4SZbxJA/https%3A%2F%2Fmarcedit.reeset.net%2Fxslt-processing-xslstrip-whitespace-issues
For an alternative.
--tr
-----Original Message-----
From: MarcEdit support in technical and instructional matters <[log in to unmask]> On Behalf Of SUBSCRIBE MARCEDIT-L Alexandra Wong
Sent: Wednesday, February 5, 2020 10:47 AM
To: [log in to unmask]
Subject: [MARCEDIT-L] Batch MARC -> MODS with "XSLT processing error. Error Number: -6"
Hello!
I have used MarcEdit to batch download MARC records into one file from hundreds of catalogue keys, so first of all, thank you! I am now trying to batch convert these MARC files to MODS using the MARC Tools feature, but I get an error that says "XSLT processing error. Error Number: -6" and before that gives an error that starts with:
LineNumber: 0
Line Position: 0
System.Xml.Xsl. XslTranformException: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.
at
System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStartAttribute(String prefix, String localName, String ns) ...
Am I not able to batch convert? My ideal end scenario is an individual file for each MODS file, where the title of each file is the catalogue key. I would try to attach a file, but I haven't figured out how to yet.
Thank you very much,
Alexandra
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit. If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]
________________________________________________________________________
This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit. If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]
|