473,796 Members | 2,704 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with xsl for multivalue strings

I have an xml with records like this one:

<a:response>
<a:href>http://server/public/sol/comp/1049306.eml</a:href>
<a:propstat>
<a:status>HTT P/1.1 200 OK</a:status>
<a:prop>
<d:customerid>1 049306</d:customerid>
<e:professionco de b:dt="mv.string ">
<c:v>byggtapets erarbeider</c:v>
<c:v>malerarbei der</c:v>
</e:professioncod e>
</a:prop>
</a:propstat>
</a:response>

I want to display this tab-separated and have this xsl:
<?xml version="1.0"?>
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template
xmlns:a="DAV:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:for-each select="a:props tat/a:prop/f:professioncod e/c:v">
<xsl:value-of select="concat( ., ',')" />
</xsl:for-each>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

I have no problem getting the customerid, but without a "for-each" the
professioncode always comes out as a single string with no separation like
this:

byggtapetserarb eidermalerarbei der,

With the "for-each" I get this error:
msxml4.dll: Reference to undeclared namespace prefix: 'c'.

Where am I going wrong?

--
_______________ __
Rolf @ Questus ans
Jul 28 '05 #1
11 1923
Hi,

Tempore 17:38:45, die Thursday 28 July 2005 AD, hinc in foro {comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
With the "for-each" I get this error:
msxml4.dll: Reference to undeclared namespace prefix: 'c'.

Where am I going wrong?

The error message sais it all: you're trying to access an element "c:v" but you didn't declare the namespace that goes with "c". Just add the correct "xmlns:c" attribute to an ancestor-or-self of the "xsl:value-of" element.

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple
Jul 28 '05 #2
"Joris Gillis" <ro**@pandora.b e> wrote in message
news:op******** *******@news.pa ndora.be...
Hi,

Tempore 17:38:45, die Thursday 28 July 2005 AD, hinc in foro
{comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
With the "for-each" I get this error:
msxml4.dll: Reference to undeclared namespace prefix: 'c'.

Where am I going wrong?

The error message sais it all: you're trying to access an element "c:v"
but you didn't declare the namespace that goes with "c". Just add the
correct "xmlns:c" attribute to an ancestor-or-self of the "xsl:value-of"
element.


I thought so too, so I tried

xmlns:c="c:"

and

<xsl:for-each select="a:props tat/a:prop/f:professioncod e/c:v">
<xsl:value-of select="concat( ., ',')"/>
</xsl:for-each>

Is this right?

With this code I get even less than before (no professioncodes at all), but
no error.

--
_______________ __
Rolf @ Questus ans
Jul 28 '05 #3
Tempore 20:54:06, die Thursday 28 July 2005 AD, hinc in foro {comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
The error message sais it all: you're trying to access an element "c:v"
but you didn't declare the namespace that goes with "c". Just add the
correct "xmlns:c" attribute to an ancestor-or-self of the "xsl:value-of"
element.


I thought so too, so I tried

xmlns:c="c:"


Obviously, the namespace-uri (between the quotes) has to be the same as the one declared in the source XML; it is not dummy data. "c:" is a very unlikely uri...
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple
Jul 28 '05 #4
"Joris Gillis" <ro**@pandora.b e> wrote in message
news:op******** *******@news.pa ndora.be...
Tempore 20:54:06, die Thursday 28 July 2005 AD, hinc in foro
{comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
The error message sais it all: you're trying to access an element "c:v"
but you didn't declare the namespace that goes with "c". Just add the
correct "xmlns:c" attribute to an ancestor-or-self of the "xsl:value-of"
element.


I thought so too, so I tried

xmlns:c="c:"


Obviously, the namespace-uri (between the quotes) has to be the same as
the one declared in the source XML; it is not dummy data. "c:" is a very
unlikely uri...


Well I've tried what looks like the correct namespace-uri:

xmlns:c="cln-ewa:standard:pr ofessioncode:"

and then:

<xsl:for-each select="a:props tat/a:prop/c:v">
<xsl:value-of select="concat( ., ',')"/>
</xsl:for-each>

But nothing comes out of it (no professioncode) . You can see the structure
in my xml in the OP.

--
_______________ __
Rolf @ Questus ans
Jul 29 '05 #5
Tempore 08:54:27, die Friday 29 July 2005 AD, hinc in foro {comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
xmlns:c="cln-ewa:standard:pr ofessioncode:"

and then:

<xsl:for-each select="a:props tat/a:prop/c:v">
<xsl:value-of select="concat( ., ',')"/>
</xsl:for-each>

But nothing comes out of it (no professioncode) .

That's pretty logical: there's no location step for 'professioncode '

INPUT XML:
<a:multistatu s
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:">
<a:response>
<a:href>http://server/public/sol/comp/1049306.eml</a:href>
<a:propstat>
<a:status>HTT P/1.1 200 OK</a:status>
<a:prop>
<d:customerid>1 049306</d:customerid>
<e:professionco de b:dt="mv.string ">
<c:v>byggtapets erarbeider</c:v>
<c:v>malerarbei der</c:v>
</e:professioncod e>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>

XSLT:
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:for-each select="a:props tat/a:prop/e:professioncod e/c:v">
<xsl:value-of select="concat( ., ',')" />
</xsl:for-each>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

OUTPUT :
1049306 byggtapetserarb eider,malerarbe ider,
I only just thought about this: Do you need all data of type 'multivalue strings' to be seperated by comma's? If so, it's better to use a template:

<xsl:styleshe et version="1.0"
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template

match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="a:props tat/a:prop/e:professioncod e"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>

<xsl:template match="*[@b:dt='mv.strin g']/*[position() !=last()]">
<xsl:value-of select="." /><xsl:text>,</xsl:text>
</xsl:template>

</xsl:stylesheet>

That will give you following output:
1049306 byggtapetserarb eider,malerarbe ider


regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple
Jul 29 '05 #6
"Joris Gillis" <ro**@pandora.b e> wrote in message
news:op******** *******@news.pa ndora.be...
Tempore 08:54:27, die Friday 29 July 2005 AD, hinc in foro {comp.text.xml}
scripsit Rolf Barbakken <no******@alexa ndria.cc>:
xmlns:c="cln-ewa:standard:pr ofessioncode:"

and then:

<xsl:for-each select="a:props tat/a:prop/c:v">
<xsl:value-of select="concat( ., ',')"/>
</xsl:for-each>

But nothing comes out of it (no professioncode) . That's pretty logical: there's no location step for 'professioncode '

INPUT XML:
<a:multistatu s
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:">
<a:response>
<a:href>http://server/public/sol/comp/1049306.eml</a:href>
<a:propstat>
<a:status>HTT P/1.1 200 OK</a:status>
<a:prop>
<d:customerid>1 049306</d:customerid>
<e:professionco de b:dt="mv.string ">
<c:v>byggtapets erarbeider</c:v>
<c:v>malerarbei der</c:v>
</e:professioncod e>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>

XSLT:
<xsl:styleshe et version="1.0"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:for-each select="a:props tat/a:prop/e:professioncod e/c:v">
<xsl:value-of select="concat( ., ',')" />
</xsl:for-each>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>

</xsl:stylesheet>

OUTPUT :
1049306 byggtapetserarb eider,malerarbe ider,


I get no professioncode with this code.
I only just thought about this: Do you need all data of type 'multivalue
strings' to be seperated by comma's? If so, it's better to use a template:

<xsl:styleshe et version="1.0"
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template

match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="a:props tat/a:prop/e:professioncod e"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>

<xsl:template match="*[@b:dt='mv.strin g']/*[position() !=last()]">
<xsl:value-of select="." /><xsl:text>,</xsl:text>
</xsl:template>

</xsl:stylesheet>

That will give you following output:
1049306 byggtapetserarb eider,malerarbe ider


This returns absolutely nothing. Not one single byte of data. But no error.

The entire xsl now looks like this:
<xsl:styleshe et version="1.0"
xmlns:a="DAV:"
xmlns:b="unknow n"
xmlns:c="cln-ewa:standard:pr ofessioncode:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:e="cln-ewa:custom:"
xmlns:f="cln-ewa:standard:"
xmlns:xsl="http ://www.w3.org/1999/XSL/Transform">
<xsl:output method="text"/>
<xsl:template
match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:sn"/>
<xsl:text> </xsl:text>
<xsl:value-of select="transla te(a:propstat/a:prop/d:street,
' ', ' ')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="transla te(a:propstat/a:prop/d:postalcode,
' ', '')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:l"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:officetelepho nenumber"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:telephoneNumb er"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:mobile"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:email1"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:customerid"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:contacturl"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:facsimiletele phonenumber"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/a:creationdate"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:department"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:deleted"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:maker"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:work"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:ssn"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:visitadr"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:businesshomep age"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:agressoid"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:agressoinitia ls"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/d:homeState"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:contactikon"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:customergroup "/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:contactperson "/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:projects"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:agressonew"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:extagressoid"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/e:foretn"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:mycontact"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:activeproject s"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/f:contacted"/>
<xsl:text> </xsl:text>
<xsl:value-of select="a:props tat/a:prop/a:contentclass"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="a:props tat/a:prop/e:professioncod e"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
<xsl:template match="*[@b:dt='mv.strin g']/*[position() !=last()]">
<xsl:value-of select="." /><xsl:text>,</xsl:text>
</xsl:template>
</xsl:stylesheet>

I really appreciate the help.

--
_______________ __
Rolf @ Questus ans
Jul 29 '05 #7
Tempore 18:44:06, die Friday 29 July 2005 AD, hinc in foro {comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:
This returns absolutely nothing. Not one single byte of data. But no error.

I bet it's still a namespace issue.
Anyway, this conversation is leading nowhere. The XML sample in the OP was incomplete, I had to make to much assumptions.
Please provide the full XML (maybe a link to it?).

BTW, You don't need to copy everything I write litteraly;)
e.g. if I write xmlns:b="unknow n" that means I do not posses enough information to make write the proper namespace-uri. You should have corrected it.

I hope we can soon fix this...
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple
Jul 29 '05 #8
"Joris Gillis" <ro**@pandora.b e> wrote in message
news:op******** *******@news.pa ndora.be...
Tempore 18:44:06, die Friday 29 July 2005 AD, hinc in foro {comp.text.xml}
scripsit Rolf Barbakken <no******@alexa ndria.cc>:
This returns absolutely nothing. Not one single byte of data. But no
error.

I bet it's still a namespace issue.
Anyway, this conversation is leading nowhere. The XML sample in the OP was
incomplete, I had to make to much assumptions.
Please provide the full XML (maybe a link to it?).


I have sent you an email. Hope the address is correct.

--
_______________ __
Rolf @ Questus ans
Jul 29 '05 #9
Tempore 22:04:55, die Friday 29 July 2005 AD, hinc in foro {comp.text.xml} scripsit Rolf Barbakken <no******@alexa ndria.cc>:

Here's the sylesheet, it does not look very neat, but at least it works.

<xsl:styleshe et xmlns:xsl="http ://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:b="urn:uu id:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:f="cln-ewa:custom:"
xmlns:c="xml:"
xmlns:g="urn:sc hemas-microsoft-com:office:offi ce"
xmlns:e="cln-ewa:standard:"
xmlns:d="urn:sc hemas:contacts: "
xmlns:a="DAV:">
<xsl:output method="text"/>
<xsl:template
match="/">
<xsl:for-each select="a:multi status/a:response">
<xsl:for-each select="(a:prop stat/a:prop)[1]">
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:sn"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:stree t"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:posta lcode"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:l"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:offic etelephonenumbe r"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:telep honeNumber"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:mobil e"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:email 1"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:custo merid"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:conta cturl"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:facsi miletelephonenu mber"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="a:creat iondate"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:depar tment"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:delet ed"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:maker "/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:work"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:ssn"/>
<xsl:text> </xsl:text>
<xsl:text></xsl:text>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:visit adr"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:busin esshomepage"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:agres soid"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:agres soinitials"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="d:homeS tate"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:conta ctikon"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:custo mergroup"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:conta ctperson"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:proje cts"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:agres sonew"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:extag ressoid"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:foret n"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:mycon tact"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:activ eprojects"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="f:conta cted"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="a:conte ntclass"/>
<xsl:text> </xsl:text>
<xsl:apply-templates select="e:profe ssioncode"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</xsl:for-each>
</xsl:template>

<xsl:template match="*[@b:dt='mv.strin g']/*[position() !=last()]">
<xsl:value-of select="." /><xsl:text>,</xsl:text>
</xsl:template>

<xsl:template match="d:street ">
<xsl:value-of select="transla te(., ' ', ' ')" />
</xsl:template>

<xsl:template match="d:postal code">
<xsl:value-of select="transla te(., ' ', '')" />
</xsl:template>

</xsl:stylesheet>

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
Vincit omnia simplicitas
Keep it simple
Jul 29 '05 #10

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

Similar topics

1
1671
by: Joel Barsotti | last post by:
In asp3, you could set a multivalue cookie by doing something like this Response.Cookies("login")("user") = Session('user'); Response.Cookies("login")("password") = Session('password'); Response.Cookies("login")("version") = Application('cookieVersion'); I can't seem to find a way to do anything similiar with the HttpCookie object, is there something that I'm missing or do I need to manage a cookie for each value I want to set these...
2
5523
by: Fredrik Rodin | last post by:
All, I'm having problems with my resource manager in ASP.NET 2.0 after conversion from ASP.NET 1.1. Here is a background: In ASP.NET 1.1 All my user controls and aspx pages inherit from base classes. A base class includes this property (among others...;-)):
16
4930
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by Microsoft must be installed on their servers. Now german Umlaute (ä, ü, ö) and quotes are returned incorrectly in SOAP fault responses. This can be easily verified: Implement the following in a web service method (just raises a SOAPException with a...
14
2540
by: Dennis Benzinger | last post by:
Hi! The following program in an UTF-8 encoded file: # -*- coding: UTF-8 -*- FIELDS = ("Fächer", ) FROZEN_FIELDS = frozenset(FIELDS) FIELDS_SET = set(FIELDS)
22
1922
by: sam_cit | last post by:
Hi Everyone, I have the following structure in my program struct sample { char *string; int string_len; };
11
2428
by: Bob Rock | last post by:
Hello, I have an array of strings and need to find the matching one with the fastest possible code. I decided to order the array and then write a binary search algo. What I came up with is the following. I noticed that if I set: int upper = strings.GetUpperBound(0); I never match the last element in the array (i.e. "iii")
0
1444
by: nass | last post by:
hello everyone and happy new year. i am not sure how to tackle this problem or where is originates from so i am writing here in hope that if you can not help you can at least point me in a direction. I am writing some little program using only standard c++ library and i am opening a file that contains strings. there are numbers , english and greek letters among the characters. the reading is done fine and the data are then stored onto a...
1
4127
by: Ben | last post by:
NooB: Anyone help with what I could be doing incorrectly here? Trying to have a parameter drop down list where a user can select one or more of the available values contained in the table to filter out results. Have a single table with five values. Keep getting the following error.... Table name is Name Field is NickName Parameter name is "Nick", datatype string, prompt "Select NickNames",
5
1759
by: varshaP | last post by:
Hi.. How to remove selected value from a readonly multivalue field, on clicking the button ?
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9535
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
10244
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
10201
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
9061
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
7558
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
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4130
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

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.