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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transform attribute to element ???

Status
Not open for further replies.

Frukten

Technical User
Jan 22, 2007
1
SE
I'm trying to import an XML document into Access 2003. I Need a XSL file to
transform it to avoid Access from truncating the attributevalues.

This is the structure of the XML file.

<Library>
<Book name="Bookname">
<Chapter nr="1">
<Paragraph nr="1">Paragraphtext...</paragraph>
<Paragraph nr="2">Paragraphtext...</paragraph>
</Chapter>
<Chapter nr="2">
<Paragraph nr="1">Paragraphtext...</paragraph>
</Chapter>
</Book>
</Library>


This is the output i want after transformation:

<Library>
<Paragraph>
<Book>Bookname</Book>
<Chapter>1</Chapter>
<Paranr>1</Paranr>
<Paratext>Paragraphtext...</Paratext>
</Paragraph>
<Paragraph>
<Book>Bookname</Book>
<Chapter>1</Chapter>
<Paranr>2</Paranr>
<Paratext>Paragraphtext...</Paratext>
</Paragraph>
<Paragraph>
<Book>Bookname</Book>
<Chapter>2</Chapter>
<Paranr>1</Paranr>
<Paratext>Paragraphtext...</Paratext>
</Paragraph>
</Library>

I'm totally lost, thankful for help
/Fredrik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top