XPath not finding attribute
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Fri May 06, 2016 5:08 pm
XPath not finding attribute
Hello All,
I have the following XML structure:
<document>
<scheduled_payments>
<scheduled_payment id="31533715" status="ACTIVE" updated_user="0" type="EXTERNAL_TRANSFER">
<amount value="-50" formattedValue="-50.00"/>
I have this variable setup:
<xsl:param name="paymentList" select="/pp:document/pp:scheduled_payments/pp:scheduled_payment"/>
I'm trying to test if the type is EXTERNAL_TRANSFER but I can't figure out the syntax for it!
<xsl:for-each select="$paymentList">
<xsl:when test="./@type='EXTERNAL_TRANSFER'">
The for-each loop is looping through the <scheduled_payment> nodes, I just can't seem to get the value of the 'type'...
All help is appreciated...
Frank
I have the following XML structure:
<document>
<scheduled_payments>
<scheduled_payment id="31533715" status="ACTIVE" updated_user="0" type="EXTERNAL_TRANSFER">
<amount value="-50" formattedValue="-50.00"/>
I have this variable setup:
<xsl:param name="paymentList" select="/pp:document/pp:scheduled_payments/pp:scheduled_payment"/>
I'm trying to test if the type is EXTERNAL_TRANSFER but I can't figure out the syntax for it!
<xsl:for-each select="$paymentList">
<xsl:when test="./@type='EXTERNAL_TRANSFER'">
The for-each loop is looping through the <scheduled_payment> nodes, I just can't seem to get the value of the 'type'...
All help is appreciated...
Frank
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