|
Hi all,
I found out that there is a patch for fop. It reduces the memory usage problem significantly... The thing is though i have no idea how to implement the patch.
This is one of the sites i found the information...
http://comments.gmane.org/gmane.text.xml.fop.user/11739
if anyone has any help that would be great
Thank you in advance
He who laughs last...
Oh yes... I'm using fop 0.20.5
-- modified at 10:15 Wednesday 19th July, 2006
|
|
|
|
|
i think this is a better idea of what i'm looking for...
<href>http://comments.gmane.org/gmane.text.xml.fop.user/12120
i just need to understand how to get the code onto my machine and how to apply the patch. I realy need the patch since i'm using a table in my xsl for the fop...
thank you in advance
He who laughs last...
-- modified at 6:55 Thursday 20th July, 2006
|
|
|
|
|
I have this output from an SQL qery using: FOR XML AUTO, ELEMENTS
<br />
<root><br />
<Companies><br />
<name>John</name><br />
<Meetings><br />
<meetingdate>12/12/06</meetingdate><br />
</Meetings><br />
</Companies><br />
<br />
<br />
<Companies><br />
<name>Jim</name><br />
<Meetings><br />
<meetingdate>08/09/07</meetingdate><br />
</Meetings><br />
<Meetings><br />
<meetingdate>12/12/06</meetingdate><br />
</Meetings><br />
</Companies><br />
</root><br />
And I want to format it using XSL into a table like so:
John | 12/12/06
Jim | 08/09/07
Jim | 12/12/06
my problem lies with the fact Jim has "Meetings" twice inside his entry (becuase he has 2 meetings) and im not sure on nesting a for-each inside a for-each so it loops through Companies and while doing so loops through any meetings it finds.
so far my XSL looks like this:
<br />
<table><br />
<br />
<tr><br />
<th>Company</th><br />
<th>Date</th><br />
</tr><br />
<br />
<xsl:for-each select="//Companies"><br />
<tr><br />
<td><br />
<xsl:value-of select="name"/><br />
</td><br />
<td><br />
<xsl:value-of select="Meetings/meetingdate"/><br />
</td><br />
</tr> <br />
</xsl:for-each><br />
<br />
<br />
</table><br />
but it only prints out the first meeting in each entry.
Cany any one help me with this ?
|
|
|
|
|
Well, it looks like you want one row per meeting. You can skip the nested for loop. It's pretty simple:
<xsl:for-each select="//Companies/Meetings">
<tr><td>
<xsl:value-of select="../name"/>
</td><td>
<xsl:value-of select="meetingdate"/>
</td></tr>
</xsl:for-each>
Logifusion[^]
|
|
|
|
|
which one is the best searching algorithm for XML documents
rabia
-- modified at 2:31 Wednesday 19th July, 2006
|
|
|
|
|
|
thank u
-- modified at 2:20 Wednesday 26th July, 2006
|
|
|
|
|
is this format corrrect <element attribute="val"> name <meaning>xyz</meaning></element>
rabia
-- modified at 2:23 Wednesday 19th July, 2006
|
|
|
|
|
Yes, that's a correct format. The " name " portion is considered a text node.
Logifusion[^]
|
|
|
|
|
Hi,
This is my XSD for Attributes here what i need is, if Name is present in my XML attribute then there should not be Data and Length, if Name is not there then i can have Data and Length (Length can be optional). How does it will be changed...
<xs:element name="VAR" maxOccurs ="unbounded">
<xs:complexType>
<xs:attribute name="Name" use ="required" type="xs:string" />
<xs:attribute name="Data" use ="required" type="xs:string" />
<xs:attribute name="Length" use ="optional" type="xs:integer" />
</xs:complexType>
</xs:element>
|
|
|
|
|
Hi Everybody,
If any body has an idea of how to do this.Here i have reference for common.xsd which is present in the same directory. I need to load common.xsd and will create a xml file which will have all teh elements of accountndo and common:IdentifiableNDO.
DEMO CODE :
<complexType name="AccountNDO">
<complexContent>
<extension base="common:IdentifiableNDO">
<sequence>
<element maxOccurs="1" minOccurs="1" name="OpeningDate" nillable="false" type="date"/>
<element maxOccurs="1" minOccurs="1" name="ClosingDate" nillable="false" type="date"/>
</sequence>
</extension>
</complexContent>
</complexType>
Namespace reference : This is included in the top of the file : Can we use it for reference.
<import namespace="http://www.xyz.com/wx/common" schemaLocation="Common.xsd"/>
-- modified at 6:35 Tuesday 18th July, 2006
|
|
|
|
|
Thanks all i have got the answer myself:
Read it with the help of streamreader and add reference of common.xsd in targetnamespace. Reader will load both files in. Load files in dataset and do whatever you want to do....
suneet
|
|
|
|
|
Hi,
I have the following XML data, is it right approach to have best XML. Still i need to have attributes as different sections and make use of it. Please go over and point what are all the chenges required to make it better.
<Cfg>
<CF>I</JTAG>
<CF>J</JTAG>
<EX name="WRITE">
<CA name="J" D="0" L="1">><</CALL>
</EX>
<SC>
<RUN name="WRITE" <</RUN>
</SC>
</Cfg>
|
|
|
|
|
Well to start with I would make sure it was well formed XML.. you know ... needs some of those <> characters in it!
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Hi,
I have the following XML data, is it right approach to have best XML. Still i need to have attributes as different sections and make use of it. Please go over and point what are all the chenges required to make it better.
<Cfg>
<CF>I</JTAG>
<CF>J</JTAG>
<EX name="WRITE">
<CA name="J" D="0" L="1">><</CALL>
</EX>
<SC>
<RUN name="WRITE" <</RUN>
</SC>
</Cfg>
|
|
|
|
|
Well it's still not "valid xml" but assuming those are typo problems it looks fine to me. Are you having a problem? Perhaps is you specified your problem it would help.
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
led mike, don't be so cruel. Your answers doesn't really help but only giving the frustration. Why don't you put aside your own job for a few hours and code anything [b]sivaprakashshanmugam[/b] want ?
Best regards,
-----------
Igor Sukhovhttp://sukhov.net
|
|
|
|
|
Igor Sukhov wrote: Your answers doesn't really help but only giving the frustration.
Sorry I guess I don't understand what your question is. I already said the XML looks fine to me if it were valid.
|
|
|
|
|
He's saying you should do his homework for him. Like many a boss, you should know exactly what it is that he needs to accomplish and do that work for him.
Logifusion[^]
|
|
|
|
|
He wasn't even the OP! I just now figured that out thanks to your post. hehe... some times I am so thick
|
|
|
|
|
|
|
Hello,every body,
please help to tell me how to save XML as string, (I use VC++ to develop)Pug XML Parser.thanks!!!
regards
angus
|
|
|
|
|
Don't cross post
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Hi all,
I'm creating an xslfo file for printing and I have to use margin-top and margin-bottom. But I must ignore the previous margin-bottom to keep the blocks together. This margin-bottom only for last block of the page and pages can have more than one block. I cannot figure out which block is the last one of the page.
Is there any way to ignore margin-top or margin-bottom?
(I must use more than one block on each page and I'm creating all blocks with same way.)
Thanks all..
|
|
|
|