|
The XSL you have here nests page-sequence s inside each other and you can't do that. A page-sequence gets paired up with a master . Take a look at this example from zvon[^]. It shows kind of how you would write a book in FO. The first 6 pages are done under one page-sequence and then the subsequent pages are done under a completely different set of page-sequence s where the first page has a header a certain way and the even and odd pages have the header aligned differently. It's a complex example, but it should give you an idea of how to use page-sequence s.
|
|
|
|
|
Cannot implicitly convert type 'System.Xml.XmlNodeList' to 'System.Xml.XmlElement'
how can i map/convert from 1 class to other using C#
rabia
|
|
|
|
|
Umm, a question like this scares me. First, you're saying you don't know how to cast in C# and yet you're working on a program that works with XML? Second, there's the fact that NodeList versus Element didn't tip you off that one is a list of nodes and the other is a single element. It sounds like you need to pick up a book on C# first before you go any further.
Logifusion[^]
|
|
|
|
|
|
hi,I want to output XML content,coding like below,but show error,how to fix it?
std::basic_ostream<tchar,std::char_traits<tchar> > &os;
root.outer_xml(os);
error C2530: 'os' : references must be initialized
angus
|
|
|
|
|
Opinions of this product? I need to learn and use xml, and these guys have a good sale on...
Charlie Gilley
Will program for food...
Whoever said children were cheaper by the dozen... lied.
My son's PDA is an M249 SAW.
|
|
|
|
|
Hi,
We are parsing csv file to XML document. It follows a structure. One part has changed.
<code>
<PRODUCTS>
<PRODUCT INVOICE="2" PRODID="1 No Lead" QTY="3000" />
<PRODUCT INVOICE="2" PRODID="3 Super" QTY="1000" />
<PRODUCT INVOICE="2" PRODID="4 Diesel" QTY="1000" />
</PRODUCTS>
</code>
In this case we need to add a
<PRODUCT INVOICE="2" PRODID="2 Plus" QTY="0" />
If a product doesn't exist need to add that name with qty 0. How would we go about doing this? We are adding this to PRODUCT node.
Thanks.
|
|
|
|
|
VK-Cadec wrote: How would we go about doing this?
That depends. How are you doing this?
VK-Cadec wrote: We are parsing csv file to XML document
|
|
|
|
|
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
|
|
|
|