Several output files in several maps
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 16
- Joined: Wed Jun 29, 2011 12:28 pm
Several output files in several maps
I have one inputfile for my XSLT transformation and I want to generate several outputfiles, each in a separate folder.
In my XSLT I have:
<xsl:template match="lcInteraction">
<xsl:for-each select="*">
<xsl:variable name="map" select="/learningAssessment/@id"/>
<xsl:variable name="item" select="concat(/learningAssessment/@id, '.xml')"/>
<xsl:result-document method="xml"
href="{$map}/{$item}" >
<xsl:element name="qti:assessmentItem">
But this isn't working.
And anyway, what do I have to fill in the XSLT transformation form?
In my XSLT I have:
<xsl:template match="lcInteraction">
<xsl:for-each select="*">
<xsl:variable name="map" select="/learningAssessment/@id"/>
<xsl:variable name="item" select="concat(/learningAssessment/@id, '.xml')"/>
<xsl:result-document method="xml"
href="{$map}/{$item}" >
<xsl:element name="qti:assessmentItem">
But this isn't working.
And anyway, what do I have to fill in the XSLT transformation form?
XSLT_output.PNG
You do not have the required permissions to view the files attached to this post.
-
- Posts: 143
- Joined: Tue Mar 25, 2003 11:21 am
Re: Several output files in several maps
Hello,
Since all the output is generated through the <xsl:result-document> there is no nedd to fill the "Save As" field.
If you need help with the stylesheet please send us some samples files on our support email address (support@oxygenxml.com) and we will try to help you.
Regards,
Mircea.
Since all the output is generated through the <xsl:result-document> there is no nedd to fill the "Save As" field.
If you need help with the stylesheet please send us some samples files on our support email address (support@oxygenxml.com) and we will try to help you.
Regards,
Mircea.
Mircea Enachescu
<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
-
- Posts: 16
- Joined: Wed Jun 29, 2011 12:28 pm
Re: Several output files in several maps
In my script I have now:
<xsl:template match="map">
<xsl:for-each select="descendant::topicref">
<xsl:result-document method="xml" href="LO_{@cci-idref}.xml">
...
This works ok.
But I really would like, that all generated files are stored in the same sub-map.
How can I do that?
<xsl:template match="map">
<xsl:for-each select="descendant::topicref">
<xsl:result-document method="xml" href="LO_{@cci-idref}.xml">
...
This works ok.
But I really would like, that all generated files are stored in the same sub-map.
How can I do that?
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
Re: Several output files in several maps
Hello,
I do not understand exactly how do you want to generate the result files. Maybe you can give me some examples of your map file content and how you configured the XSLT transformation.
Probably you can use the resolve-uri() and base-uri() functions to generate the result in the map folder. Something like this:
Best Regards,
Octavian
I do not understand exactly how do you want to generate the result files. Maybe you can give me some examples of your map file content and how you configured the XSLT transformation.
Probably you can use the resolve-uri() and base-uri() functions to generate the result in the map folder. Something like this:
Code: Select all
<xsl:template match="map">
<xsl:for-each select="descendant::topicref">
<xsl:variable name="name" select="concat('LO_',@cci-idref,'.xml')"/>
<xsl:variable name="uri" select="resolve-uri($name,base-uri())"/>
<xsl:result-document method="xml" href="{$uri}">
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
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