Unexpected token [$] in path expression
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 9
- Joined: Fri Jan 30, 2009 6:57 pm
Unexpected token [$] in path expression
Hi,
I'm merging 2 XML files
and get in some trouble.
How can I do the following ?
<!-- path to second XML: PC.xml -->
<xsl:param name="PCRef" select="'PC.xml'"/>
<!-- -->
...
<xsl:attribute name="ValueToGet">
<!-- get value out of first XML -->
<xsl:variable name="myPC" select="Element1/Element2"/>
<!-- get value out of second XML based of the variable 'myPC'-->
<xsl:value-of select="document($PCRef)/El1/$myPC/@pc"/>
</xsl:attribute>
the variable $myPC is not accepted in the path expression.
I get the error: Unexpected token [$] in path expression.
How can I add a variable elementname in a path expression ?
Kind Regards,
Droom
I'm merging 2 XML files
and get in some trouble.
How can I do the following ?
<!-- path to second XML: PC.xml -->
<xsl:param name="PCRef" select="'PC.xml'"/>
<!-- -->
...
<xsl:attribute name="ValueToGet">
<!-- get value out of first XML -->
<xsl:variable name="myPC" select="Element1/Element2"/>
<!-- get value out of second XML based of the variable 'myPC'-->
<xsl:value-of select="document($PCRef)/El1/$myPC/@pc"/>
</xsl:attribute>
the variable $myPC is not accepted in the path expression.
I get the error: Unexpected token [$] in path expression.
How can I add a variable elementname in a path expression ?
Kind Regards,
Droom
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