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

Re: create XML from XML using XSL

Subject: Re: create XML from XML using XSL
From: Duane Nickull <webmaster@xxxxxxxxxxxxxxxxx>
Date: Wed, 07 Apr 1999 19:23:31 -0700
create xml node using xsl
Hello Guy:

The reason why we are trying this again and again is the end use for a
project.   What we are trying to do is amalgamate two nodes from the XML
document which may be named <url> and <id>.  In the xsl doc, we wanted
to create the xlink with the Xpointer

http://www.somewhere.com/cgi-bin?ID123

Out of the input tree of 

<url>http://www.somewhere.com/cgi-bin</url>

and  <id>?ID123</id>

<The_BIG PROBLEM>
I know how to do this based on 1 input tree node pattern, however, we
are dealing with a dynamically generated XML document from our engine
which may output between zero and one thousand tree branches based on
previous user input.

Therefore, we have to use the <xsl:for-each> in the XSL document.  This
seemingly is harmless enough but the beautiful designers at Microsoft
have thrown a damper on our party by not allowing us to use:

<xsl:for-each select="root_tag/next_tag">

> <xsl:template match="someTag">
>      <a>
>           <xsl:attribute name="href">
>                <xsl:value-of select=".[@file]" />
>           </xsl:attribute>
>           <xsl:value-of />
>      </a>
> </xsl:template>

</xsl:for-each>

We tried this in hundred's of variations and finally resorted to using a
scripting language to manipulate the data and assemble the completed
link by accessing the node values and joining them together into the
correct <href="url+id">Buy one now</a>

This is currently unsatisfactory and there is high I/O overhead and
other inherent problems.  I know we aren't the first to try this.

My next step is to investigate the possibility of using the MS XML-DOM
to facilitate a solution.

*sigh* back to the ole drawing board.  It's really eating into my
snowboarding time and that's annoying me.

Duane Nickull
cartnetwork.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.