Problem using new editor variables
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 190
- Joined: Wed Apr 20, 2005 5:43 pm
- Location: Victoria, BC, Canada
Problem using new editor variables
Post by martindholmes »
Hi there,
I'm trying to reference some TEI resources from the TEI add-on in an Ant task, using the new variables. My scenario parameters include this:
and I've also tried:
based on the folder name of the TEI plugin. I've also tried quoting both these values. This looks like this in the xpr file:
When I then try to do this in my Ant build file:
I get this error:
E [ANT Validator] Cannot find /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml imported from /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/buildODD.xml
I other words, it looks as though the ${teiPlugin} variable is not being expanded in the @file attribute, and in any case it's being evaluated relative to the location of the ant build file. Any idea what I might be doing wrong here?
All help appreciated,
Martin
I'm trying to reference some TEI resources from the TEI add-on in an Ant task, using the new variables. My scenario parameters include this:
Code: Select all
teiPlugin: ${frameworkDir(TEI P5)}
Code: Select all
teiPlugin ${frameworkDir(tei)}
Code: Select all
<antParameter>
<field name="name">
<String>teiPlugin</String>
</field>
<field name="description">
<String>TEI plugin location</String>
</field>
<field name="value">
<String>${frameworkDir("tei")}</String>
</field>
<field name="defaultValue">
<null/>
</field>
<field name="type">
<Integer>5</Integer>
</field>
<field name="isPredefined">
<Boolean>false</Boolean>
</field>
<field name="possibleValues">
<null/>
</field>
</antParameter>
Code: Select all
<import file="${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml"/>
E [ANT Validator] Cannot find /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/${teiPlugin}/xml/tei/stylesheet/common/teianttasks.xml imported from /home/mholmes/DiskStation/mholmes/WorkData/english/map_of_london/xml/db/data/utilities/buildODD.xml
I other words, it looks as though the ${teiPlugin} variable is not being expanded in the @file attribute, and in any case it's being evaluated relative to the location of the ant build file. Any idea what I might be doing wrong here?
All help appreciated,
Martin
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: Problem using new editor variables
Post by alex_jitianu »
Hello Martin,
The first use of the variable is the correct one:
Judging form the error message I tend to believe that the parameter is not actually received by the ANT process (so no connection with the use of the $frameworkDir variable). To see if this assumption is correct, please send a value that doesn't contain this variable to see if the transformation works or not.
Best regards,
Alex
The first use of the variable is the correct one:
Code: Select all
${frameworkDir(TEI P5)}
Best regards,
Alex
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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