Search found 22 matches

by mboudreau
Wed Jan 17, 2018 7:08 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Associating DTD public identifier with local DTD file
Replies: 9
Views: 497

Re: Associating DTD public identifier with local DTD file

Thanks, Radu. I commented out the <group> tags, and everything works.
by mboudreau
Tue Jan 16, 2018 11:44 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Associating DTD public identifier with local DTD file
Replies: 9
Views: 497

Re: Associating DTD public identifier with local DTD file

I've been working with this solution for a while now, and it seems OK. However, I now need to distribute my two frameworks to other people, so I'd like to give them two folders that they can drop into their own 'frameworks' directories. The only obstacle is the catalog files I've created. In each on...
by mboudreau
Wed Nov 08, 2017 7:16 pm
Forum: Common Problems
Topic: XML refactoring preview highlights namespace declarations
Replies: 3
Views: 195

Re: XML refactoring preview highlights namespace declarations

Hi Alin, Yes, the 'xlink' namespace is also defined on the root element of my document. I don't know why the redundant declaration occurs, but unfortunately I have no control over the files I'm given to work with. It would be convenient if there were an 'Ignore namespaces' option, as there is in the...
by mboudreau
Fri Nov 03, 2017 10:25 pm
Forum: Common Problems
Topic: XML refactoring preview highlights namespace declarations
Replies: 3
Views: 195

XML refactoring preview highlights namespace declarations

I'm exploring the XML Refactoring tool, and I decided to try making a simple change: sec/title => sec/label In the 'Rename element' dialog box, I specified this: https://www.dropbox.com/s/rpiojvn5odi47gp/XML%20refactoring%201.png?dl=0 But the preview showed this, highlighting namespace declaration c...
by mboudreau
Thu Sep 28, 2017 12:25 am
Forum: XSLT and FOP
Topic: Variable definition not processed when variable isn't output
Replies: 1
Views: 132

Variable definition not processed when variable isn't output

I was setting up a stylesheet in which I expected to use a number of variables. Two of my variable definitions were as follows: <xsl:variable name="doi"> <xsl:choose> <xsl:when test="/article/front/article-meta/article-id[@pub-id-type = 'doi']"> <xsl:value-of select="/articl...
by mboudreau
Tue Sep 05, 2017 10:22 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Re: Diff files and namespaces

Thanks, Teo. I uploaded the files and included a link to this forum topic.
by mboudreau
Thu Aug 31, 2017 11:26 pm
Forum: XSLT and FOP
Topic: Diff files, ignore nodes by XPath
Replies: 1
Views: 166

Diff files, ignore nodes by XPath

Another question about the diff files tool (despite the minor issues I've reported, I'm finding it extremely useful). I'm comparing two HTML files, which I know have only trivial differences in the <img> element @alt attribute value, so I'd like Diff to ignore <img> elements. I have added "//im...
by mboudreau
Thu Aug 31, 2017 5:59 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Re: Diff files and namespaces

Hi Teo, I edited both files to make sure the minus sign is the same character in each, but the math elements are still highlighted as different. I also added your original short math expression to the files, and it too was flagged as different in the two versions, as in this screen shot: https://www...
by mboudreau
Wed Aug 30, 2017 5:28 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Re: Diff files and namespaces

Thanks, Teo. When I change the character entities in the left file to match the right, the comparison still shows the two math expressions as different: https://www.dropbox.com/s/1monazci64qv2hf/diff%20problem%202.png?dl=0 (Is this the best way to include screen shots in a forum posting? I don't see...
by mboudreau
Wed Aug 30, 2017 12:03 am
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Re: Diff files and namespaces

Oddly, I can consistently reproduce this problem with large files, but not with small ones, so perhaps some more information would be helpful. I'm using Oxygen 18.1 (build 2016112217). I took your MathML and wrapped it in a few elements to represent in very simplified form what I'm working with. Whe...
by mboudreau
Tue Aug 29, 2017 7:11 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Re: Diff files and namespaces

Hi Octavian,

I notice that your second file includes the namespace declaration on the 'mml:math' start tag, whereas mine did not. Is this strictly necessary if I have the 'mml' namespace declaration in the root element ('article') start tag?
by mboudreau
Mon Aug 28, 2017 6:41 pm
Forum: XSLT and FOP
Topic: Diff files and namespaces
Replies: 11
Views: 469

Diff files and namespaces

I'm using Diff Files to examine pairs of files: an old file created by an existing (non-XSLT) conversion program, and a new file created by the XSLT transformation I'm working on. The files contain many math expressions tagged in MathML. In the old files, each MathML element tag includes a namespace...
by mboudreau
Tue Aug 22, 2017 7:07 pm
Forum: SDK-API, Frameworks - Document Types
Topic: Associating DTD public identifier with local DTD file
Replies: 9
Views: 497

Re: Associating DTD public identifier with local DTD file

I have a solution, but I'm not sure if it's ideal. I set up frameworks for both document types, using only the Public ID for each one in the association rules, specifying the DTD, and adding a catalog file for each one. Tested again, but I was still getting validation errors. So I compared all the p...
by mboudreau
Tue Aug 22, 2017 12:00 am
Forum: SDK-API, Frameworks - Document Types
Topic: Associating DTD public identifier with local DTD file
Replies: 9
Views: 497

Re: Associating DTD public identifier with local DTD file

So I created a catalog file for just one DTD and added it to the XML Catalog preferences, and everything worked fine. However, I need to work with two DTDs (input and output), and I'm having problems. I created a catalog file for each DTD, and put the catalog files into the directories containing th...
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: 497

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: 575

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: 575

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: 639

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: 639

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: 639

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: 639

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...

Go to advanced search