IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Profile: ceving
About
User Name: ceving
Forum Rank: Newbie
Real Name:
Location DE
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Thursday, October 1, 2009
Last Visit: Wednesday, November 18, 2009 2:19:31 PM
Number of Posts: 5
[0.03% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Regular expression problem
Posted: Friday, October 30, 2009 9:32:42 AM
I tried to convert a string of the form substr1-substr2-substr3 into the form Substr1Substr2Substr3. I tried to implement it with analyze-string in this way:

Code:
<xsl:analyze-string select="@name" regex="^.|-.">
    <xsl:matching-substring>
        <xsl:value-of select="replace(upper-case(.), '-', '')"/>
    </xsl:matching-substring>
    <xsl:non-matching-substring>
        <xsl:value-of select="."/>
    </xsl:non-matching-substring>
</xsl:analyze-string>


When I use Saxon with the XSL file it works fine. When I use XMLSpy 2010 (I installed it a few minutes ago) the whole string is converted to upper case letters. It seems to me that XMLSpy does not support ^ for the beginning of a string in regular expressions.

Is this a bug?

Regards
Topic: Is it possible to pop up a select box?
Posted: Thursday, October 15, 2009 11:03:31 AM
Hi,

I have a XSL transformation file which requires a parameter. The parameter references a sub tree in the XML file to be proccessed. Is it possible to define a default value, which could be for example the first sub tree.

But is it possible to tell XMLSpy to pop up a select box with all possible values in order to be able to select one instead of typing it always in?

Regards
Sascha
Topic: Example for a specific choice
Posted: Monday, October 5, 2009 6:37:01 AM
Hi,

thanks for your information!

I found some kind of workaround, although I think this is also a bug. After importing the schema into a WSDL file I can create a SOAP request based on the schema. The WSDL part of XMLSpy ignores the choices and treats them as sequences. This results in a SOAP request, which contains all different choices. By removing the unnecessary choices I end up with my correct examples.

Regards
Sascha
Topic: Example for a specific choice
Posted: Sunday, October 4, 2009 8:15:38 AM
Hi,

how can I create an XML example file based on an XML schema for a specific choice? Whenever I try to create an example file XMLSpy creates a file only for the first element in a choice. I have an XML schema with several nested choices and I can not find a way to create an example of a specific combination of nested choices.

For example 'message' may be a choice of 'login' and 'logout'. And 'login' and 'logout' may be choices of 'request' and 'response'. So there are four different message possibilities:

message/login/request
message/login/response
message/logout/request
message/logout/response

XMLSpy creates always message/login/request. But I would like to create also the other three. How can this be done?

Regards
Sascha
Topic: How can I verify a SOAP request?
Posted: Thursday, October 1, 2009 8:19:38 AM
Hi,

I have created a XSD and a WSDL with XMLSyp. WSDL uses type definitions from the XSD.

Now I created a SOAP request with XMLSpy and I would like to validate the quest. The generated request is:
Code:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://localhost/test/test-workflow.xsd">
    <SOAP-ENV:Body>
        <login xsi:type="m0:login_t">String</login>
        <password xsi:type="m0:password_t">String</password>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I have installed a web server and placed the schema file at the correct place. So the URL http://localhost/test/test-workflow.xsd is valid and delivers the correct schema file.

But when I try to validate the SOAP request I get the error, that the request is invalid, because some referenced file could not be found:
Quote:
Die Datei C:\Dokumente und Einstellungen\tester\Eigene Dateien\Unbenannt9.xml ist nicht gültig.
Referenz auf einen in dieser Dokumenteninstanz unterstützten Schematyp (DTD, W3C Schema) konnte nicht gefunden werden.

Sorry but there seems to be no way to get an english error message out of the german XMLSpy.

So the question is: why does XMLSpy not find any URL which has been generated by itself?
And: where is the error and how can I fix it?

My problem is that XMLSpy even does not tell which file is missing. How can I find out this?

Regards,
Sascha

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.