|
Subject: RE: [xsl] 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 |
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: [xsl] 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: [xsl] 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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Get value from update.xml, Shailesh | Thread | Re: [xsl] Get value from update.xml, Joris Gillis |
| RE: [xsl] Get value from update.xml, Shailesh | Date | RE: [xsl] Get value from update.xml, Shailesh |
| Month |