Search found 68 matches

by mboudreau
Mon Aug 14, 2017 11:03 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Associating DTD public identifier with local DTD file
Replies: 9
Views: 6858

Associating DTD public identifier with local DTD file

I'm trying to do something that I think is fairly simple, but I confess I'm confused by some of the vocabulary used in the online documentation. I'm working with a bunch of files that reference a DTD by its public identifier. E.g., <!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v3...
by mboudreau
Thu Mar 30, 2017 10:39 pm
Forum: XSLT and FOP
Topic: Test whether file exists
Replies: 3
Views: 5050

Re: Test whether file exists

Sorry for the late reply--I neglected to check "Notify me when a reply is posted". Thanks, Adrian: specifying the absolute file path solved the problem. FWIW, I'm running this in Oxygen 18.1 on OS X 10.11.6 (El Capitan), so I'm accustomed to assuming filenames are case-sensitive. Using the...
by mboudreau
Fri Mar 24, 2017 11:30 pm
Forum: XSLT and FOP
Topic: Test whether file exists
Replies: 3
Views: 5050

Test whether file exists

I'm creating a transformation during which I need to know whether a file exists. I found this solution online: <xsl:choose> <xsl:when test="fs:exists(fs:new('AJS405045.xml'))" xmlns:fs="java.io.File"> <xsl:message><xsl:text>Found it!</xsl:text></xsl:message> </xsl:when> <xsl:othe...
by mboudreau
Sat Feb 04, 2017 12:23 am
Forum: XSLT and FOP
Topic: Unwanted namespace not being excluded
Replies: 6
Views: 15036

Re: Unwanted namespace not being excluded

Ah! You're right, of course. After adding @copy-namespaces="no" to my generic template, I had removed 'atict' from @exclude-result-prefixes (and only noticed the effect recently because the <article> start tag runs off past the right margin of my Oxygen window). I put it back, and all is w...
by mboudreau
Tue Jan 31, 2017 8:07 pm
Forum: XSLT and FOP
Topic: Unwanted namespace not being excluded
Replies: 6
Views: 15036

Re: Unwanted namespace not being excluded

I've just realized that although the namespace I'm trying to get rid of is no longer being added to the children (front, body, etc.) of the root element (article), it's being added to the root element itself. My updated stylesheet looks like this: <xsl:template match="article"> <article ar...
by mboudreau
Mon Jan 09, 2017 8:26 pm
Forum: XSLT and FOP
Topic: Unwanted namespace not being excluded
Replies: 6
Views: 15036

Re: Unwanted namespace not being excluded

Thanks, Adrian!
by mboudreau
Sat Jan 07, 2017 1:37 am
Forum: XSLT and FOP
Topic: Unwanted namespace not being excluded
Replies: 6
Views: 15036

Unwanted namespace not being excluded

Hi all, I'm doing an XML-to-XML transformation via XSLT 2.0, and a namespace declaration from my source document is appearing in my output despite my adding it to the exclude-result-prefixes list. I'm relatively new to XSLT, so I'm not sure if I've misunderstood how to use the exclude-result-prefixe...