Search found 40 matches

by david_himself
Mon May 13, 2019 7:59 pm
Forum: XSLT and FOP
Topic: Avoid preview in ODD by example
Replies: 2
Views: 1698

Re: Avoid preview in ODD by example

Thanks, Radu. I might try TEI-L at some point for questions specific to that transformation. I got it to run by setting the corpus parameter to ${pdu}. As for the unwanted HTMLs, I'd already tried unchecking the "Open->In System Application' checkbox, but it hadn't helped. Today I figured out t...
by david_himself
Thu May 09, 2019 8:33 pm
Forum: XSLT and FOP
Topic: Avoid preview in ODD by example
Replies: 2
Views: 1698

Avoid preview in ODD by example

I'm trying to run oddByExample.xsl over a folder of some 400 TEI/XML files, following Lou Burnard's instructions at http://teic.github.io/TCW/howtoGenerate.html. If I follow Lou's instructions to the letter, I get an error: "Exception thrown by URIResolver: Malformed URL ...". This is from...
by david_himself
Wed Apr 24, 2019 1:03 pm
Forum: Common Problems
Topic: Confine pretty-printing to teiHeader
Replies: 5
Views: 2019

Re: Confine pretty-printing to teiHeader

Thank you for quick responses. Should be OK now, touch wood.

D
by david_himself
Wed Apr 24, 2019 10:41 am
Forum: Common Problems
Topic: Confine pretty-printing to teiHeader
Replies: 5
Views: 2019

Re: Confine pretty-printing to teiHeader

PS. Or globally edit the text element in each XML to add the attribute xml:space="preserve" (and adjust schema accordingly), then allow the original XSLT to run with indent="yes". That looks a (deceptively?) simple fix. Is there a catch?

David
by david_himself
Wed Apr 24, 2019 9:48 am
Forum: Common Problems
Topic: Confine pretty-printing to teiHeader
Replies: 5
Views: 2019

Re: Confine pretty-printing to teiHeader

Thanks, Radu. I've found this useful discussion: http://tei-l.970651.n3.nabble.com/oXygen-and-the-quot-Format-and-Indent-quot-function-td2346233.html I'm currently thinking of doing the following. (1) Reverting my XMLs to the latest version before the XSLT edit which included indent="yes"....
by david_himself
Wed Apr 24, 2019 1:53 am
Forum: Common Problems
Topic: Confine pretty-printing to teiHeader
Replies: 5
Views: 2019

Confine pretty-printing to teiHeader

Hi I wrote an XSLT to edit a folder of 400+ XML documents. It was meant to adjust many elements inside teiHeader/fileDesc without changing anything substantive in the rest of the teiHeader or in the text portion. When I added indent="yes" to the XSLT, it pretty-printed the whole header of ...
by david_himself
Thu Feb 14, 2019 11:13 pm
Forum: Common Problems
Topic: namespace conflict
Replies: 3
Views: 2016

Re: namespace conflict

Many thanks for quick reply. My preferred solution, given that the website has server-side processing, is for a suitable XSLT 2.0 processor to be used. Is there any merit in XSLT 1.0 solutions which create a new root element and a set of new elements which copy the existing elements but give them th...
by david_himself
Thu Feb 14, 2019 11:50 am
Forum: Common Problems
Topic: namespace conflict
Replies: 3
Views: 2016

namespace conflict

Beginner's confusion about the namespace of an XML and perhaps of an XSLT. This post overlaps with several previous posts, but I couldn't be sure I'd found the appropriate fix in them. Apologies if already answered. I have a set of XML files which reference an XSLT file and a Relax NG schema, as fol...
by david_himself
Tue Oct 02, 2018 10:54 am
Forum: XSLT and FOP
Topic: Awkward XPath reference
Replies: 2
Views: 2202

Re: Awkward XPath reference

Works a treat. Thank you.

D
by david_himself
Mon Oct 01, 2018 7:53 pm
Forum: XSLT and FOP
Topic: Awkward XPath reference
Replies: 2
Views: 2202

Awkward XPath reference

We have started marking precision on some XML date elements. An invented maximal example is as follows: <date when="1815-01-06" notBefore="1814-10" notAfter="1815">6 January c1815 <precision match="@when" precision="medium"/> <precision match="@...