473,606 Members | 3,100 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Still XSL Problems

Hi!

I got another problem parsing my XML document:

<document>
<paragraph>
<style val=listing/>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style>text</style>
<text>some text between 2 listings</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
</document>

The output should look like:

<parsed>
<list>
<item>listing #1 text</item>
<item>listing #1 text</item>
<list>
<text>some text between 2 listings</text>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
</parsed>
My idea to get this result was:

<xsl:template match="text">
<xsl:value-of select="."/>
</xsl:template>

<xsl:template match="paragaph ">
<xsl:if text="style[@val='listing'>
<list>
<item><xsl:appl y-templates select="text"></item>

<xsl:for-each
select="followi ng-sibling::paragr aph/style[@val='listing']">
<item><xsl:appl y-templates select="text"></item>
</xsl:for-each>
</list>
</xsl:if>
</xsl:template>
<xsl:template match="document ">
<xsl:apply-templates select="paragra ph"/>
</xsl:template>
But i was wrong - i get a document like:

<parsed>
<list>
<item>listing #1 text</item>
<item>listing #1 text</item>
<list>
<list>
<item>listing #1 text</item>
<list>
<text>some text between 2 listings</text>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
<list>
<item>listing #2 text</item>
</list>
</parsed>

How may i change my XSL to remove the repeated entries?
Can i modify the position in the paragraph-template?
Any ideas?
TIA, Martin

Jul 20 '05 #1
5 1909
Hi Martin,

At the moment your XML is not well-formed... <style val=listing/> is not
well-formed because the attribute value is not enclosed in quotes. As this
is inconsistent with <style>text</style> part perhaps your XML looks more
like...

== XML =============== =============== =============== ====
<document>
<paragraph>
<style>listin g</style>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style>listin g</style>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style>text</style>
<text>some text between 2 listings</text>
</paragraph>
<paragraph>
<style>listin g</style>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style>listin g</style>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style>listin g</style>
<text>listing #2 text</text>
</paragraph>
</document>
== end of XML =============== =============== ============

You are really needing to 'group' the <paragraph> elements by when the
<style> value changes. In which case something like...

== XSL1 =============== =============== =============== ===
<?xml version="1.0"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:key name="kNonEqFol low" match="paragrap h"
use="generate-id(following-sibling::paragr aph[style != current()/style])"/>
<xsl:template match="document ">
<parsed>
<xsl:apply-templates select="paragra ph[not(preceding-sibling::paragr aph)
or style != preceding-sibling::paragr aph[1]/style]"/>
</parsed>
</xsl:template>

<xsl:template match="paragrap h[style = 'listing']">
<!-- find the first following with a different <style> -->
<xsl:variable name="non-eq"
select="generat e-id(following-sibling::paragr aph[style !=
current()/style])"/>
<list>
<xsl:for-each select=". | key('kNonEqFoll ow',$non-eq)">
<item>
<xsl:value-of select="text"/>
</item>
</xsl:for-each>
</list>
</xsl:template>

<xsl:template match="paragrap h[style = 'text']">
<!-- find the first following with a different <style> -->
<xsl:variable name="non-eq"
select="generat e-id(following-sibling::paragr aph[style !=
current()/style])"/>
<xsl:copy-of select="(. | key('kNonEqFoll ow',$non-eq))/text"/>
</xsl:template>

</xsl:stylesheet>
== end of XSL1 =============== =============== ===========

However, if you are using MSXML 3.0 or MSXML 4.0 (pre SP2) then that
stylesheet will not work correctly due to a bug with current() in keys. An
alternative would be...

== XSL2 =============== =============== =============== ===
<?xml version="1.0"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="document ">
<parsed>
<xsl:apply-templates select="paragra ph[not(preceding-sibling::paragr aph)
or style != preceding-sibling::paragr aph[1]/style]"/>
</parsed>
</xsl:template>

<xsl:template match="paragrap h[style = 'listing']">
<!-- find how many non-equal items follow this one -->
<xsl:variable name="count-non-eq"
select="count(f ollowing-sibling::paragr aph[style != current()/style])"/>
<list>
<xsl:for-each select=". | following-sibling::paragr aph[style =
current()/style and count(following-sibling::paragr aph[style !=
current()/style]) = $count-non-eq]">
<item>
<xsl:value-of select="text"/>
</item>
</xsl:for-each>
</list>
</xsl:template>

<xsl:template match="paragrap h[style = 'text']">
<!-- find how many non-equal items follow this one -->
<xsl:variable name="count-non-eq"
select="count(f ollowing-sibling::paragr aph[style != current()/style])"/>
<xsl:copy-of select="(. | following-sibling::paragr aph[style =
current()/style and count(following-sibling::paragr aph[style !=
current()/style]) = $count-non-eq])/text"/>
</xsl:template>

</xsl:stylesheet>
== end of XSL2 =============== =============== ===========

Hope this helps
Marrow
http://www.marrowsoft.com - home of Xselerator (XSLT IDE and debugger)
http://www.topxml.com/Xselerator

"Buchleitne r Martin" <ma**@sbox.tugr az.at> wrote in message
news:rl******** *************** *********@4ax.c om...
Hi!

I got another problem parsing my XML document:

<document>
<paragraph>
<style val=listing/>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #1 text</text>
</paragraph>
<paragraph>
<style>text</style>
<text>some text between 2 listings</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
<paragraph>
<style val=listing/>
<text>listing #2 text</text>
</paragraph>
</document>

The output should look like:

<parsed>
<list>
<item>listing #1 text</item>
<item>listing #1 text</item>
<list>
<text>some text between 2 listings</text>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
</parsed>
My idea to get this result was:

<xsl:template match="text">
<xsl:value-of select="."/>
</xsl:template>

<xsl:template match="paragaph ">
<xsl:if text="style[@val='listing'>
<list>
<item><xsl:appl y-templates select="text"></item>

<xsl:for-each
select="followi ng-sibling::paragr aph/style[@val='listing']">
<item><xsl:appl y-templates select="text"></item>
</xsl:for-each>
</list>
</xsl:if>
</xsl:template>
<xsl:template match="document ">
<xsl:apply-templates select="paragra ph"/>
</xsl:template>
But i was wrong - i get a document like:

<parsed>
<list>
<item>listing #1 text</item>
<item>listing #1 text</item>
<list>
<list>
<item>listing #1 text</item>
<list>
<text>some text between 2 listings</text>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
<list>
<item>listing #2 text</item>
<item>listing #2 text</item>
<list>
<list>
<item>listing #2 text</item>
</list>
</parsed>

How may i change my XSL to remove the repeated entries?
Can i modify the position in the paragraph-template?
Any ideas?
TIA, Martin

Jul 20 '05 #2
On Mon, 7 Jul 2003 11:49:24 +0100, "Marrow"
<marrow-NO-@-SPAM-marrowsoft.com> wrote:

Hi!

You are really needing to 'group' the <paragraph> elements by when the
<style> value changes. In which case something like...

Well your xsl's work with the data i published, but when i try to
rewrite it to use it with my data, it does not work because i do not
know the xsl:key statement enough to get it running - or better : i do
not know how to write the use - parameter to get it working ...
== XSL1 =============== =============== =============== === *snipped*== end of XSL1 =============== =============== =========== Here i get this output:
=============== =============== =============== =========
<parsed>listi ng #1 text<text>listi ng #1 text</text>
<text>some text between 2 listings</text>listing #2
text</parsed>
=============== =============== =============== =========

Is this correct??
However, if you are using MSXML 3.0 or MSXML 4.0 (pre SP2) then that
stylesheet will not work correctly due to a bug with current() in keys. An
alternative would be...
I have to work with MSXML :(
== XSL2 =============== =============== =============== === *snipped*== end of XSL2 =============== =============== ===========
Here i get a different looking output:
=============== =============== =============== =========
<parsed>listi ng #1 text<text>some text between 2
listings</text>listing #2 text</parsed>
=============== =============== =============== =========
Hope this helps


I think it shows me that i have to use the xsl:key and key() functions
to get a matching solution with the existing schema.

Thanks Martin

Jul 20 '05 #3
Hi Martin,
Is this correct??
How would I know?? :)
Well your xsl's work with the data i published, but when i try to
rewrite it to use it with my data, it does not work because i do not
know the xsl:key statement enough to get it running - or better : i do
not know how to write the use - parameter to get it working ...
...
Please, if the stylesheets don't work with your actual XML then surely the
logical thing to do would be to show that actual XML? ;)
I think it shows me that i have to use the xsl:key and key() functions
to get a matching solution with the existing schema.
No, not really, keys have nothing to do with schemas. XSLT 1.0 knows
nothing of schemas at all (input or output) - if you want the output to
validate against a given schema then that is down to the design of the
stylesheet to produce the right output... whatever that might be.

Cheers
Marrow

"Buchleitne r Martin" <ma**@sbox.tugr az.at> wrote in message
news:ld******** *************** *********@4ax.c om... On Mon, 7 Jul 2003 11:49:24 +0100, "Marrow"
<marrow-NO-@-SPAM-marrowsoft.com> wrote:

Hi!

You are really needing to 'group' the <paragraph> elements by when the
<style> value changes. In which case something like...


Well your xsl's work with the data i published, but when i try to
rewrite it to use it with my data, it does not work because i do not
know the xsl:key statement enough to get it running - or better : i do
not know how to write the use - parameter to get it working ...
== XSL1 =============== =============== =============== ===

*snipped*
== end of XSL1 =============== =============== ===========

Here i get this output:
=============== =============== =============== =========
<parsed>listi ng #1 text<text>listi ng #1 text</text>
<text>some text between 2 listings</text>listing #2
text</parsed>
=============== =============== =============== =========

Is this correct??
However, if you are using MSXML 3.0 or MSXML 4.0 (pre SP2) then that
stylesheet will not work correctly due to a bug with current() in keys. Analternative would be...


I have to work with MSXML :(
== XSL2 =============== =============== =============== ===

*snipped*
== end of XSL2 =============== =============== ===========


Here i get a different looking output:
=============== =============== =============== =========
<parsed>listi ng #1 text<text>some text between 2
listings</text>listing #2 text</parsed>
=============== =============== =============== =========
Hope this helps


I think it shows me that i have to use the xsl:key and key() functions
to get a matching solution with the existing schema.

Thanks Martin

Jul 20 '05 #4
On Mon, 7 Jul 2003 13:27:51 +0100, "Marrow"
<marrow-NO-@-SPAM-marrowsoft.com> wrote:

Hi!

Please, if the stylesheets don't work with your actual XML then surely the
logical thing to do would be to show that actual XML? ;)

Ok i could do this ;)

Here a part of my actual XML:
( This inherits everything which should be matched ... )
<?xml version="1.0" encoding="UTF-8" standalone="yes "?>
<?mso-application progid="Word.Do cument"?>
<w:wordDocume nt
xmlns:w="http://schemas.microso ft.com/office/word/2003/2/wordml"
xmlns:wx="http://schemas.microso ft.com/office/word/2003/2/auxHint"
xml:space="pres erve">
<w:body>
<wx:sect>
<w:p>
<w:pPr>
<w:pStyle w:val="MetaInfo "/>
</w:pPr>
<w:r>
<w:t>Documentnu mber</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Document number"/>
</w:pPr>
<w:r>
<w:t>12345679 0</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="MetaInfo "/>
</w:pPr>
<w:r>
<w:t>Date</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Date"/>
</w:pPr>
<w:r>
<w:t>20030708 </w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="MetaInfo "/>
</w:pPr>
<w:r>
<w:t>Title</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Title"/>
</w:pPr>
<w:r>
<w:t/>
</w:r>
<w:r>
<w:br/>
<w:t>over 2 lines ....</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ArticelN umber"/>
</w:pPr>
<w:r>
<w:t>Articel I</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ArticelD escription"/>
</w:pPr>
<w:r>
<w:t>A description which is reformated over</w:t>
</w:r>
<w:r>
<w:br/>
<w:t>2 lines with a nice break ;)</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ChapterN umber"/>
</w:pPr>
<w:r>
<w:t>1. Section</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ChapterD escription"/>
</w:pPr>
<w:r>
<w:t>Some Chapter description .....</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="ChapterA rea"/>
</w:pPr>
<w:r>
<w:t>And an area is also there ....</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Paragrap hDescription"/>
</w:pPr>
<w:r>
<w:t>Example header.</w:t>
</w:r>
</w:p>
<wx:pBdrGroup >
<wx:borders>
<wx:top wx:val="solid" wx:bdrwidth="2" wx:space="1"
wx:color="00000 0"/>
<wx:left wx:val="solid" wx:bdrwidth="2" wx:space="1"
wx:color="00000 0"/>
<wx:bottom wx:val="solid" wx:bdrwidth="2" wx:space="1"
wx:color="00000 0"/>
<wx:right wx:val="solid" wx:bdrwidth="2" wx:space="1"
wx:color="00000 0"/>
</wx:borders>
<w:p>
<w:pPr>
<w:pStyle w:val="Paragrap hText"/>
</w:pPr>
<w:r>
<w:t>Here is some text of this paragraph</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="listing"/>
<w:listPr>
<wx:t wx:val=" 1."/>
<wx:font wx:val="Times New Roman"/>
</w:listPr>
</w:pPr>
<w:r>
<w:t>This is the first listing entry</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="listing"/>
<w:listPr>
<wx:t wx:val=" 2."/>
<wx:font wx:val="Times New Roman"/>
</w:listPr>
</w:pPr>
<w:r>
<w:t>And here comes an hand-made listing....</w:t>
</w:r>
<w:r>
<w:br/>
<w:t>
a) but it only has to be written in seperate lines ...
</w:t>
</w:r>
<w:r>
<w:br/>
<w:t>
b) and a HTML br- Tag can be used for this .....
</w:t>
</w:r>
</w:p>
<w:p>
<w:pPr>
<w:pStyle w:val="Paragrap hText"/>
</w:pPr>
<w:r>
<w:t>Here is some text at the end of this paragraph</w:t>
</w:r>
</w:p>
</wx:pBdrGroup>
<w:p>
<w:pPr>
<w:pStyle w:val="FooterTe xt"/>
</w:pPr>
<w:r>
<w:t>Here is some footer in ....</w:t>
</w:r>
</w:p>
</wx:sect>
</w:body>
</w:wordDocument>
And this document should be linked to this output by the stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<document>
<head>
<metainfo type="DocumentN umber">12345679 0</metainfo>
<metainfo type="Date">200 30708</metainfo>
<metainfo type="Title">Th is title goes<br/>over 2 lines
.....</metainfo>
</head>
<body>
<article>
<number>Artic le I</number>
<description> A description which is reformated over<br/>
2 lines with a nice break ;)</description>
<section>
<number>1. Section</number>
<description>So me Chapter description</description>
<paragraph>
<description>Ex ample header</description>
<break>
Here is some text of this paragraph
</break>
<list>
<item>This is the first listing entry</item>
<item>And here comes an hand-made listing....<br/>
a) but it only has to be written in seperate lines ..<br/>
b) and a HTML br- Tag can be used for this .....
</item>
</list>
<break>
Here is some text at the andof this paragraph
</break>
</paragraph>
</section>
</article>
</body>
<footer>
<metainfo type="footer">H ere is some footer in ....</metainfo>
</footer>
</document>
The <body> could inherit tags of <article> or <paragraph>.
Martin

Jul 20 '05 #5
On Mon, 7 Jul 2003 11:49:24 +0100, "Marrow"
<marrow-NO-@-SPAM-marrowsoft.com> wrote:

Hi out there!

== XSL1 =============== =============== =============== ===
<?xml version="1.0"?>
<xsl:styleshee t version="1.0"
xmlns:xsl="htt p://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes"/>
<xsl:key name="kNonEqFol low" match="paragrap h"
use="generat e-id(following-sibling::paragr aph[style != current()/style])"/>
<xsl:templat e match="document ">
<parsed>
<xsl:apply-templates select="paragra ph[not(preceding-sibling::paragr aph)
or style != preceding-sibling::paragr aph[1]/style]"/>
</parsed>
</xsl:template>

<xsl:templat e match="paragrap h[style = 'listing']">
<!-- find the first following with a different <style> -->
<xsl:variable name="non-eq"
select="genera te-id(following-sibling::paragr aph[style !=
current()/style])"/>
<list>
<xsl:for-each select=". | key('kNonEqFoll ow',$non-eq)">
<item>
<xsl:value-of select="text"/>
</item>
</xsl:for-each>
</list>
</xsl:template>

<xsl:templat e match="paragrap h[style = 'text']">
<!-- find the first following with a different <style> -->
<xsl:variable name="non-eq"
select="genera te-id(following-sibling::paragr aph[style !=
current()/style])"/>
<xsl:copy-of select="(. | key('kNonEqFoll ow',$non-eq))/text"/>
</xsl:template>

</xsl:stylesheet>
== end of XSL1 =============== =============== ===========

However, if you are using MSXML 3.0 or MSXML 4.0 (pre SP2) then that
stylesheet will not work correctly due to a bug with current() in keys. An
alternative would be...


I am using Xalan-j so it should be ok or?

I adapted now this XSL1 to my needings:
=========XSL=== =============== =============== ============
<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:key name="noneq" match="paragrap h"
use="generate-id(following-sibling::paragr aph[inner[style !=
current()/inner/style]])"/>
<xsl:template match="document ">
<parsed>
<xsl:apply-templates select="bording "/>
</parsed>
</xsl:template>
<xsl:template match="bording" >
<group>
<xsl:variable name="selection "
select="paragra ph[not(preceding-sibling::paragr aph)
or inner/style != preceding-sibling::paragr aph[1]/inner/style]"/>
<xsl:apply-templates select="$select ion"/>
</group>
</xsl:template>
<!-- -->
<xsl:template match="paragrap h[inner[style='Listing']]">
<xsl:variable name="non-eq"
select="generat e-id(following-sibling::paragr aph[inner[style !=
current()/inner/style]])"/>
<xsl:variable name="nodes" select="key('no neq',$non-eq)"/>
<list>
<xsl:for-each select=". | $nodes">
<item>
<xsl:value-of select="rich/text"/>
</item>
</xsl:for-each>
</list>
</xsl:template>
<!-- -->
<xsl:template match="paragrap h[inner[style='Paragrap hText']]">
<xsl:variable name="non-eq"
select="generat e-id(following-sibling::paragr aph/inner[style !=
current()/inner/style])"/>
<xsl:for-each select="(. | key('noneq',$no n-eq))">
<absatz>
<xsl:value-of select="rich/text"/>
</absatz>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
=========end of XSL============ =============== ============

the corresponding XML is
=========XML=== =============== =============== ============
<?xml version="1.0" encoding="ISO-8859-1"?>
<document>
<bording>
<paragraph>
<inner>
<style>Paragrap hText</style>
</inner>
<rich>
<text>a text within a paragraph</text>
</rich>
</paragraph>
<paragraph>
<inner>
<style>Listin g</style>
</inner>
<rich>
<text>listing item #1</text>
</rich>
</paragraph>
<paragraph>
<inner>
<style>Listin g</style>
</inner>
<rich>
<text>listing item #2</text>
</rich>
</paragraph>
<paragraph>
<inner>
<style>Paragrap hText</style>
</inner>
<rich>
<text>a text at the end of a paragraph</text>
</rich>
</paragraph>
</bording>
<bording>
<paragraph>
<inner>
<style>Paragrap hText</style>
</inner>
<rich>
<text>2 a text within a paragraph</text>
</rich>
</paragraph>
<paragraph>
<inner>
<style>Listin g</style>
</inner>
<rich>
<text>2 listing item #1</text>
</rich>
</paragraph>
<paragraph>
<inner>
<style>Listin g</style>
</inner>
<rich>
<text>2 listing item #2</text>
</rich>
</paragraph>
</bording>
</document>
=========end of XML============ =============== ============

these two produce following output:

=========Output =============== =============== ===============
<?xml version="1.0" encoding="UTF-8"?>
<parsed>
<group>
<absatz>a text within a paragraph</absatz>
<list>
<item>listing item #1</item>
<item>listing item #2</item>
</list>
<absatz>a text at the end of a paragraph</absatz>
<absatz>2 listing item #1</absatz>
<absatz>2 listing item #2</absatz>
</group>
<group>
<absatz>2 a text within a paragraph</absatz>
<list>
<item>a text at the end of a paragraph</item>
<item>2 listing item #1</item>
<item>2 listing item #2</item>
</list>
</group>
</parsed>
=========end of Output========= =============== ===============

But i want an output like the following:
=============== =============== =============== =============
<?xml version="1.0" encoding="UTF-8"?>
<parsed>
<group>
<absatz>a text within a paragraph</absatz>
<list>
<item>listing item #1</item>
<item>listing item #2</item>
</list>
<absatz>a text at the end of a paragraph</absatz>
</group>
<group>
<absatz>2 a text within a paragraph</absatz>
<list>
<item>2 listing item #1</item>
<item>2 listing item #2</item>
</list>
</group>
</parsed>
=============== =============== =============== =============
How can i rewrite my matching key to work only with the paragraph tags
within the bording - element??
TIA, Martin

Jul 20 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

102
7538
by: RFox | last post by:
I date back to the early days of the web when HTML was limited but very managable, and have always maintained that hand-coding HTML gives you far better control and cleaner HTML markup than any WYSIWYG editor. But all the sites I created and manage are small sites (<50 pages). And I've been out of the loop in terms of what's new in methodology and with the specifications for the past couple of years.
4
2726
by: Wayne Wengert | last post by:
I am still stuck trying to create a Class to use for exporting and importing array data to/from XML. The format of the XML that I want to import/export is shown below as is the Class and the code I am using to create a sample XML file. I am trying to dimension the ArrayOfJudgeEntity to have two sets of the JudgeTableEntity values. When I run the code I get an error that the XML is not correct. I jsut can't get my head around the array...
13
3081
by: Deano | last post by:
Hi, I generate a report using two dates (From and To). I notice if I enter 01/10/2003 that it is interpreted by Access as 10/01/2003 i.e 10th January rather than 1st October as I intended. This is the old problem of US date format mm/dd/yy versus dd/mm/yy. I am stepping through the code and the dates do seem to be ok but when the report runs I get records earlier than 1st October which is not what I want.
13
2216
by: penguin732901 | last post by:
Checking back for discussions, there was a lot of talk about 2000 being slower than 97, but not so much lately. What is the latest opinion? Anyone care to set up a poll for how many NG members are still using 97? 2000? I am slightly tempted to upgrade by a new client whose data is in 2000, but of course, I can just port it all back through Excel...right? and I guess I have seen a couple of nice features...
687
23231
by: cody | last post by:
no this is no trollposting and please don't get it wrong but iam very curious why people still use C instead of other languages especially C++. i heard people say C++ is slower than C but i can't believe that. in pieces of the application where speed really matters you can still use "normal" functions or even static methods which is basically the same. in C there arent the simplest things present like constants, each struct and enum...
8
1713
by: Michael C | last post by:
Hi all, I'm still having problems with VS.NET 2003 running on my XP machine. I finally decided I might as well uninstall completely and reinstall from scratch. But lo and behold it won't let me uninstall... It gets stuck about 2/3rds of the way through the uninstall (based on the progress bar) and hangs for a very, very long time (a few hours last time). Then it seems to give up and returns an error message stating that it cannot...
24
2852
by: Dave | last post by:
I understand that VS.NET is supposed to compile native Win32 apps that do not require the .Net runtime. If that's the case then there is something else from the VS200x package that is required. MSVCR80.DLL and MSVCR80D.DLL are present and accounted for in Windows\System32. This is something else. Message says that the application configuration is incorrect. I just compiled a simple "Hello.cpp" app that exhibits the same behavior so...
16
2518
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client uses IE to talk with a server. The user on the client (IE) sees an ASP net page containing a TextBox. He can write some text in this text box and push a submit button.
0
7978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8461
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8448
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8126
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6796
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4010
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2454
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1313
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.