J
johkar
My problem is that all the nodes that I am concerned about are at the
same level. The parent nodes are marked below; parent nodes have no
cov_code value and their childs do have a cov_code value. Essentially
cov_code without a value serves as a delimiter between groups. In my
XSLT I am outputting XML and need all the SEQ_NBR nodes of the parent
an childs to match so:
Parent1 and children SEQ_NBR 1,1,1
Parent2 and children SEQ_NBR 2,2,2
The ONLY thing I can count on is that the Parent;'s SEQ_NBR will
always be correct and the parent's SEQ_GRP number after the "-" will
always be 0.
<myRoot>
<coverage>
<cov_supp>
<cov_code/><!-- PARENTS HAVE NO VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-0</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- PARENT - THE FIRST PARENT IS 1-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code><!-- CHILDS HAVE A VALUE VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-1</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-2</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code/><!-- PARENTS HAVE NO VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-0</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- PARENT - SECOND PARENT IS 2 AND SO ON-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-1</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-2</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
</myRoot>
same level. The parent nodes are marked below; parent nodes have no
cov_code value and their childs do have a cov_code value. Essentially
cov_code without a value serves as a delimiter between groups. In my
XSLT I am outputting XML and need all the SEQ_NBR nodes of the parent
an childs to match so:
Parent1 and children SEQ_NBR 1,1,1
Parent2 and children SEQ_NBR 2,2,2
The ONLY thing I can count on is that the Parent;'s SEQ_NBR will
always be correct and the parent's SEQ_GRP number after the "-" will
always be 0.
<myRoot>
<coverage>
<cov_supp>
<cov_code/><!-- PARENTS HAVE NO VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-0</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- PARENT - THE FIRST PARENT IS 1-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code><!-- CHILDS HAVE A VALUE VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-1</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>1-2</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code/><!-- PARENTS HAVE NO VALUE-->
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-0</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- PARENT - SECOND PARENT IS 2 AND SO ON-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-1</SEQ_GRP>
<SEQ_NBR>1</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
<coverage>
<cov_supp>
<cov_code>someval</cov_code>
</cov_supp>
<CommlCoverage>
<SEQ_GRP>2-2</SEQ_GRP>
<SEQ_NBR>2</SEQ_NBR><!-- NEED TO OVERRIDE THIS VALUE TO THAT OF ITS
PARENT-->
</CommlCoverage>
</coverage>
</myRoot>