Specifying Directory Paths
Here should go questions about transforming XML with XSLT and FOP.
Specifying Directory Paths
We have multiple imports withing some xsl files. Some have paths names defines in a variable:
<xsl:import href="CONTENT:shared.xsl"/>
Is there a way to either define CONTENT to be point to the filepath, or remove the prefix CONTENT and setup oxygen to include the directory (and its xsl files)?
Regards
Kevin
<xsl:import href="CONTENT:shared.xsl"/>
Is there a way to either define CONTENT to be point to the filepath, or remove the prefix CONTENT and setup oxygen to include the directory (and its xsl files)?
Regards
Kevin
Re: Specifying Directory Paths
Hello,
I'm afraid you can't define a variable or parameter before the imports.
I guess you could use an XML catalog trick to get the imports from another location.
e.g. <xsl:import href="http://mycontent/shared.xsl"/>
In an XML catalog you could put:
This means that SystemIDs and URIs that start with 'http://mycontent' will be redirected to '/my/file/location'.
Then you can add the XML catalog in Oxygen's options: Options -> Preferences -> XML -> XML Catalog
You can read more about catalogs here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... alogs.html
Regards,
Adrian
I'm afraid you can't define a variable or parameter before the imports.
I guess you could use an XML catalog trick to get the imports from another location.
e.g. <xsl:import href="http://mycontent/shared.xsl"/>
In an XML catalog you could put:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD XML Catalogs V1.1//EN" "http://www.oasis-open.org/committees/entity/release/1.1/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://mycontent" rewritePrefix="/my/file/location"/>
<rewriteURI uriStartString="http://mycontent" rewritePrefix="/my/file/location"/>
</catalog>
Then you can add the XML catalog in Oxygen's options: Options -> Preferences -> XML -> XML Catalog
You can read more about catalogs here:
http://www.oxygenxml.com/doc/ug-oxygen/ ... alogs.html
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
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