3D Array and loops
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 1
- Joined: Thu Apr 26, 2007 10:49 pm
3D Array and loops
I am trying to display a 3D array. I only want to display 1 level of the 3D array. So i am attempting to do this
for a=1 to 4
for b=1 to 4
display x[my3rdplan,a,b]
next
next
How do I do this in xslt? Here is my data.
<Array1 Name="MyData" >
<Value D1="1" D2="1" D3="1">12</Value>
<Value D1="1" D2="2" D3="1">23</Value>
<Value D1="1" D2="3" D3="1">11</Value>
<Value D1="1" D2="4" D3="1">11</Value>
<Value D1="1" D2="1" D3="2">23</Value>
<Value D1="1" D2="2" D3="2">32</Value>
<Value D1="1" D2="3" D3="2">11</Value>
<Value D1="1" D2="4" D3="2">3</Value>
<Value D1="1" D2="1" D3="1">242</Value>
<Value D1="1" D2="2" D3="1">13</Value>
<Value D1="1" D2="3" D3="1">76</Value>
<Value D1="1" D2="4" D3="1">49</Value>
</Array1>
Thanks in advance.
for a=1 to 4
for b=1 to 4
display x[my3rdplan,a,b]
next
next
How do I do this in xslt? Here is my data.
<Array1 Name="MyData" >
<Value D1="1" D2="1" D3="1">12</Value>
<Value D1="1" D2="2" D3="1">23</Value>
<Value D1="1" D2="3" D3="1">11</Value>
<Value D1="1" D2="4" D3="1">11</Value>
<Value D1="1" D2="1" D3="2">23</Value>
<Value D1="1" D2="2" D3="2">32</Value>
<Value D1="1" D2="3" D3="2">11</Value>
<Value D1="1" D2="4" D3="2">3</Value>
<Value D1="1" D2="1" D3="1">242</Value>
<Value D1="1" D2="2" D3="1">13</Value>
<Value D1="1" D2="3" D3="1">76</Value>
<Value D1="1" D2="4" D3="1">49</Value>
</Array1>
Thanks in advance.
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