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

RE: Get value from update.xml and stored in source.xm

Subject: RE: Get value from update.xml and stored in source.xml(update source.xml)
From: "Shailesh" <shailesh@xxxxxxxxxxxx>
Date: Wed, 8 Sep 2004 17:12:41 +0530
get value xml
Hi,

I am getting output 1:

And the output xml file as:

<?xml version="1.0" encoding="utf-8"?>
<test>
  <source.xml>
    <test>
      <chapter>
        <test1 id="0000001">
          <test2>
          </test2>
        </test1>
        <test1 id="0000002">
          <test2>
          </test2>
        </test1>
      </chapter>
    </test>
  </source.xml>
  <source.xml>
    <beta>
      <test1 id="0000001">
        <test2>ABCD</test2>
      </test1>
      <test1 id="0000002">
        <test2>WXYZ</test2>
      </test1>
    </beta>
  </source.xml>
  <output>1
<test>
<chapter>
<test1 id="0000001">
<!--Looking up test1 (id = '0000001')-->
<!--With raw xpath:--><test2>ABCD</test2>
<!--With a key:--><test2>ABCD</test2></test1>
<test1 id="0000002">
<!--Looking up test1 (id = '0000002')-->
<!--With raw xpath:-->
<test2>WXYZ</test2>
<!--With a key:-->
<test2>WXYZ</test2>
</test1>
</chapter>
</test>
</output>
</test>

--
Shailesh
 

-----Original Message-----
From: Shailesh [mailto:shailesh@xxxxxxxxxxxx] 
Sent: Wednesday, September 08, 2004 5:07 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  Get value from update.xml and stored in source.xml(update
source.xml)

Hi,

I have get 0

--
Shailesh 

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Thursday, September 08, 2005 5:01 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Get value from update.xml and stored in source.xml(update
source.xml)



> My update.xml, source.xml and xslt are all in one folder.
that may not be relevant, it depends how you pass it in to xslt, If (for
example) your program makes a string of the stylesheet content and then
parses that to get a dom to pass to msxml, the original stylesheet location
is lost.


> So, I don't think there will be problem of variable is empty.

don't guess: add

<xsl:value-of select="count($update/*)"/>

to your output, do you get 1 or 0 ?

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The service is powered
by MessageLabs. For more information on a proactive anti-virus service
working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.