Search found 14 matches

by djharris
Wed Mar 18, 2009 1:23 am
Forum: XSLT and FOP
Topic: Relational Schema XML to SQL
Replies: 0
Views: 3054

Relational Schema XML to SQL

Has anyone run across a "generic" transform, or the beginnings of one, that can take an xml with a fairly complex schema and extract it into multiple "single-table" XML files? My ultimate target is to import the data into a legacy cobol system and I'm wondering just how far I can...
by djharris
Thu Mar 05, 2009 6:18 pm
Forum: XSLT and FOP
Topic: XPATH/XSLT Trouble with Complex Schema
Replies: 4
Views: 3601

Re: XPATH/XSLT Trouble with Complex Schema

Without the default namespace, but with a namespace defined in the template,

Code: Select all

xmlns:sdr="https://www.Cc.org/XXX.xsd"
should auto-complete be able to offer suggestions for that namespace in the match?
by djharris
Thu Mar 05, 2009 6:05 pm
Forum: XSLT and FOP
Topic: XPATH/XSLT Trouble with Complex Schema
Replies: 4
Views: 3601

Re: XPATH/XSLT Trouble with Complex Schema

That did it, thanks! I've been a software developer for 20+ years but getting my head around the XML world has been an incredible challenge. Thanks for helping a noob out! Look at XPath default namespace. In XSLT/XPath 1.0 all the name tests (like the XXX name test from your template match) without ...
by djharris
Wed Mar 04, 2009 8:21 pm
Forum: XSLT and FOP
Topic: XPATH/XSLT Trouble with Complex Schema
Replies: 4
Views: 3601

XPATH/XSLT Trouble with Complex Schema

I've simplified my schema and am starting over with a cleaner example. I'm having trouble with this schema and performing an xpath query on sub-nodes. The XSD has been obfuscated and simplified from the original as I don't have permission to post it. I'm using Saxon/SA as the transformer, no special...
by djharris
Thu Feb 19, 2009 10:51 pm
Forum: Common Problems
Topic: Saxon-SA License
Replies: 2
Views: 1988

Re: Saxon-SA License

Hello, Saxon SA that comes with Oxygen can be used only from Oxygen. For using it outside Oxygen you need to purchase a separate license for Saxon SA. If you look at the price of a separate license for Saxon SA which is higher than the price of an Oxygen license you understand that the special pric...
by djharris
Thu Feb 19, 2009 10:02 pm
Forum: Common Problems
Topic: Command line to run a transformation on a source file
Replies: 8
Views: 9769

Re: Command line to run a transformation on a source file

Thanks for the information. Any idea of how to run a transformation using LIBXML? Or even Saxon-B which shouldn't need a license? Would using "saxon.jar" instead of "saxon9sa.jar" do the job? I assume the "-o" option specifies the output file, while the .xml and .xslt ...
by djharris
Thu Feb 19, 2009 6:32 pm
Forum: Common Problems
Topic: Saxon-SA License
Replies: 2
Views: 1988

Saxon-SA License

Since Oxygen now comes with a license for Saxon-SA, does that license allow us to call Saxon-SA directly? The normal process for using a Saxon-SA license is to point to a directory containing it in the classpath. Since there's no physical .lic file included with Oxygen, I'm wondering if we're allowe...
by djharris
Thu Feb 19, 2009 6:26 pm
Forum: Common Problems
Topic: Command line to run a transformation on a source file
Replies: 8
Views: 9769

Re: Command line to run a transformation on a source file

You actually can run a transform from the command line, but NOT using Oxygen. After you have your transform working in Oxygen, find the documentation for that vendor's transform and call it from the command line. It will likely be different for different vendors. For example, to call Saxon-SA from t...
by djharris
Tue Feb 10, 2009 8:43 pm
Forum: XSLT and FOP
Topic: XSLT and Schema
Replies: 4
Views: 2555

Re: XSLT and Schema

Actually, maybe there's an easier way to deal with this. I have the requirement of creating a csv from a customer's xml, but their xsd leaves every field optional (minOccurs="0"). Short of requiring them to change the xsd, can you think of a way for me to force every field to be created vi...
by djharris
Tue Feb 10, 2009 7:10 pm
Forum: XSLT and FOP
Topic: XSLT and Schema
Replies: 4
Views: 2555

Re: XSLT and Schema

Bummer. I was hoping I was just missing the right keywords when searching. I've been looking at Saxon-SA and noticed it already doesn't like that I'm calling a function that takes an xs:string on every node. I'm thinking a "negative" check against that might be where I need to head but I'm...
by djharris
Tue Feb 10, 2009 5:26 pm
Forum: XSLT and FOP
Topic: XSLT and Schema
Replies: 4
Views: 2555

XSLT and Schema

I've ordered some books and I've been googling like crazy but it seems there's a disconnect between XSLT and the schema of the XML file I'm transforming. I can't figure out how to determine the node type and I also need to pull all the possible elements for the header list. George already helped me ...
by djharris
Mon Feb 09, 2009 9:12 pm
Forum: XSLT and FOP
Topic: XSLT Scenario Works in Debug Only
Replies: 4
Views: 2551

Re: XSLT Scenario Works in Debug Only

Excellent, thank you!
by djharris
Mon Feb 09, 2009 7:10 pm
Forum: XSLT and FOP
Topic: XSLT Scenario Works in Debug Only
Replies: 4
Views: 2551

Re: XSLT Scenario Works in Debug Only

Thank you George for your quick and very helpful reply. The errors in the files were my bad and unrelated to the problem. I had decided to edit them while I posted them and didn't do a very good job of it. The xml is much longer and I left off the ending tag when I trimmed it. The stylesheet error w...
by djharris
Mon Feb 09, 2009 6:13 pm
Forum: XSLT and FOP
Topic: XSLT Scenario Works in Debug Only
Replies: 4
Views: 2551

XSLT Scenario Works in Debug Only

I'm having problems getting an XSLT transform to work, but only in "normal" mode. If I debug the scenario it works perfectly. In non-debug I get the "Content is not allowed in prolog" error. I've followed all the advice I could find on the error, including from this board, includ...