Use of document function to reference external DOM object
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 12
- Joined: Tue May 16, 2006 1:16 pm
Use of document function to reference external DOM object
I've been using the document function to reference (or read in) an external named XML file OK. If I'm working in code and have the external XML in memory, in a DOM object say, can I still reference this within the transform (passing in the object into the transform perhaps?).
I should add that I'm quite new to all this so I hope the above makes sense.
Thanks,
Peter.
I should add that I'm quite new to all this so I hope the above makes sense.
Thanks,
Peter.
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
The transformer executes the XSLT stylesheet instructions. If you want that the stylesheet receive as value of a global xsl:param a DOM object you have to check that the API of your specific transformer for passing parameters to the XSLT stylesheet allows you to pass a DOM object value. I think passing a DOM with a parsed XML document is not necessary as the document() function called from the stylesheet does that for you.
Regards,
Sorin
The transformer executes the XSLT stylesheet instructions. If you want that the stylesheet receive as value of a global xsl:param a DOM object you have to check that the API of your specific transformer for passing parameters to the XSLT stylesheet allows you to pass a DOM object value. I think passing a DOM with a parsed XML document is not necessary as the document() function called from the stylesheet does that for you.
Regards,
Sorin
-
- Posts: 4141
- Joined: Fri Mar 28, 2003 2:12 pm
Post by sorin_ristache »
Hello,
You can set a custom URI resolver only for the MSXML.NET transformer. In <oXygen/> go to Options -> Preferences -> XML -> XSLT/FO/XQuery -> XSLT -> MSXML.NET and use the options called Assembly filename for URI resolver class and Assembly GAC name for URI resolver class. Press F1 in the Preferences dialog to read more details about how you should use the options.
Regards,
Sorin
You can set a custom URI resolver only for the MSXML.NET transformer. In <oXygen/> go to Options -> Preferences -> XML -> XSLT/FO/XQuery -> XSLT -> MSXML.NET and use the options called Assembly filename for URI resolver class and Assembly GAC name for URI resolver class. Press F1 in the Preferences dialog to read more details about how you should use the options.
Regards,
Sorin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service