Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT newbie Q - output text excel xml

Status
Not open for further replies.

WMitchellCPQ

Programmer
Sep 28, 2001
54
US
Hi im fairly new to XSL and im i have no idea how todo the following.

I'm in a for each loop of a range which happen to be data values - OrderItems. I have another range called OrderItemsHeader which basically is the field name. I want to loop throught the item and then create a tag and inside the tag output the orderitem data.

Below im able to loop through the data range ok. My problem is extracting the data from the header range and then with that creating the tags
Code:
<xsl:for-each select="xl:Row[xl:Cell/xl:NamedCell[@ss:Name='OrderItems']]">

"<??>- Im not sure how to create the tags based on another range
<xsl:value-of select="xl:Cell[position()=1]/xl:Data"/>
</??>

</xsl:for-each>
Any help or suggestions would be greatly appreciated
W
 
When I try to be more flexible with my tags the xml document i wish to parse fails.

Code:
 <xsl:text><NewtagName></xsl:text><xsl:value><xsl:text><NewtagName/></xsl:text><xsl:value>
 
When I try to be more flexible with my tags the xml document i wish to parse fails.

Code:
 <xsl:text><NewtagName></xsl:text><xsl:value><xsl:text><NewtagName/></xsl:text><xsl:value>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top