[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Transform XML to DXL using XSLT

Subject: Re: Transform XML to DXL using XSLT
From: "rob Jackson" <robjackson2002@xxxxxxxxx>
Date: Fri, 3 Mar 2006 01:18:28 -0800
dxl xsl
Hi,

Thanks Gurus for your help.
I am really new to XSL so gets stuck in simple problems.

How can I modify the xsl program given by Michael and Florent if the
Document A is
<eapqp:ItemList>
         <eapqp:Level>Level 1</eapqp:Level>
      <eapqp:PartNumber>987654321</eapqp:PartNumber>
</eapqp:ItemList>

I tried by changing the xslt by

<xsl:template match="eapqp:Level">
   <item name="Level"><text><xsl:value-of select="."/></item>
</xsl:template>

But it giving me error as illegal prefix.
Please suggest a solution.


Cheers,
Rob


On 3/2/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > Now I am stuck with a new problem and I am not able to find
> > any solution for it.
>
> If this is a new problem, then I wonder what problems you've been tackling
> until now. This is about as classic a one-to-one transformation as they
> come.
> >
> > I want to use XSLT to transform XML file to DXL (Domino XML) file. Dxl
> > file is also a xml file used by Lotus Notes.
> > For example what could be the xslt for converting document A
> > into document B.
>
> <xsl:template match="ItemList">
> <documents>
>   <document>
>     <xsl:apply-templates/>
>   </document>
> </documents>
> </xsl:template>
>
> <xsl:template match="Level">
>   <item name="Level"><text><xsl:value-of select="."/></item>
> </xsl:template>
>
> <xsl:template match="PartNumber">
>   <item name="PartNumber"><text><xsl:value-of select="."/></item>
> </xsl:template>
>
> Michael Kay
> http://www.saxonica.com/
>
> >
> > Document A:
> >
> > <ItemList>
> >         <Level>Level 1</Level>
> >         <PartNumber>987654321</PartNumber>
> > </ItemList>
> >
> > Document B:
> >
> > <documents>
> >     <document>
> >         <item name="Level"><text>Level 1</text></item>
> >         <item name="PartNumber"><text>987654321</text></item>
> >     </document>
> > </documents>
> >
> > Thanks in advance.
> >
> > Cheers,
> > Rob

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.