How to use loop in a loop XML
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 2
- Joined: Fri Aug 17, 2018 6:16 pm
How to use loop in a loop XML
Post by Bartolomeu_9000 »
Hello,
I need to set a second loop in XML Feed in order to gather all relative data <ARTICLE> under the parent data <PRODUCT>.
First loop is set to pull all parent data from the web.
Second loop doesnt work and would appreciate your advice how should I set it up?
1) This is the loop that works:
<PRODUCTDATA type="full">
{each type="product"}
<PRODUCT>
<P_NR>{sku|parent}</P_NR>
(...)
2) Than later within I need to collect all articles under assigned product - and it doesnt work:
<ARTICLEDATA type="full">
{each type="article"}
<ARTICLE>
<A_NR>{sku}</A_NR>
(...)
3) Closure of both loopes:
{/each}
</ARTICLE>
</ARTICLEDATA>
</PRODUCT>
{/each}
</PRODUCTDATA>
Please, could you help me?
I`ve no clue (and not an expert at all).
I need to set a second loop in XML Feed in order to gather all relative data <ARTICLE> under the parent data <PRODUCT>.
First loop is set to pull all parent data from the web.
Second loop doesnt work and would appreciate your advice how should I set it up?
1) This is the loop that works:
<PRODUCTDATA type="full">
{each type="product"}
<PRODUCT>
<P_NR>{sku|parent}</P_NR>
(...)
2) Than later within I need to collect all articles under assigned product - and it doesnt work:
<ARTICLEDATA type="full">
{each type="article"}
<ARTICLE>
<A_NR>{sku}</A_NR>
(...)
3) Closure of both loopes:
{/each}
</ARTICLE>
</ARTICLEDATA>
</PRODUCT>
{/each}
</PRODUCTDATA>
Please, could you help me?
I`ve no clue (and not an expert at all).
-
- Posts: 9451
- Joined: Fri Jul 09, 2004 5:18 pm
Re: How to use loop in a loop XML
Hi,
This is a forum for users of the Oxygen XML Editor application.
We occasionally help people who use XSLT stylesheets to process XML documents but in your case you seem to use some kind of PHP-based template engine and we do not have experience with this.
Regards,
Radu
This is a forum for users of the Oxygen XML Editor application.
We occasionally help people who use XSLT stylesheets to process XML documents but in your case you seem to use some kind of PHP-based template engine and we do not have experience with this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 2
- Joined: Fri Aug 17, 2018 6:16 pm
Re: How to use loop in a loop XML
Post by Bartolomeu_9000 »
Hi Radu,
Thank you for your answer.
Best regards,
Bartosz
Thank you for your answer.
Best regards,
Bartosz
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