obdurodon / dh_course

Digital Humanities course site
GNU General Public License v3.0
20 stars 6 forks source link

Returning error "item type xs:base64Binary" during batch transformation #475

Closed charlietaylor98 closed 4 years ago

charlietaylor98 commented 4 years ago

I'm trying to use a batch xsl transformation to return a single, consolidated document from multiple letters using the following code: `

</xsl:template>`

I'm using the oxygen debugger, which returns the error "Required item type of context item for the child axis is node(); supplied expression (.) has item type xs:base64Binary" on the line <xsl:copy-of select="letter"/>

djbpitt commented 4 years ago

@charlietaylor98 Does the ALL_XML directory contain anything that isn't an XML document? If so, try it with only XML documents in that directory. If that isn’t the problem, can you push the XSLT and the ALL_XML directory to GitHub so that I can pull it and try to debug it?

By the way, your XSLT runs together as if it were a single line because you surrounded it with single backticks. That works for small, inline snippets, but for multi-line code blocks, you can keep the lineation and indentation by fencing the block with triple backticks, on their own lines, with a blank line before the opening backticks and after the closing ones. See https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks.

charlietaylor98 commented 4 years ago

They're all xml documents; I'll push the directory and the xslt

djbpitt commented 4 years ago

@charlietaylor98 I can run your full_text.xsl in \<oXygen/> without error. Was the problem with a different XSLT stylesheet?

charlietaylor98 commented 4 years ago

Nope, that's the stylesheet I used. Not sure why I'm getting that error. Maybe if I try to run the transformation from the command line instead?

djbpitt commented 4 years ago

@charlietaylor98 If you can’t get it to work, we can try screen sharing and debugging together over Zoom. I’ll look for the next update.

charlietaylor98 commented 4 years ago

Looks like the command line is returning the same error

djbpitt commented 4 years ago

@charlietaylor98 I have an appointment at 6:30 p.m. today, but if you’re free before then, we could try to trouble-shoot it over Zoom. Let me know.

charlietaylor98 commented 4 years ago

@djbpitt I'm free until 6 or after 7 today, so if we could meet over Zoom soon or after your meeting (if it's not too long) that would be best

djbpitt commented 4 years ago

@charlietaylor98 Let's try now, in our regular Zoom classroom. I'll start a session now ...

djbpitt commented 4 years ago

@charlietaylor98 For the record, the culprit was .DS_Store. Now fixed; closing this issue.