XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Mark MaltbySubject: Comparing Dates
Author: Mark Maltby
Date: 27 Mar 2006 01:39 PM
Is it possible to compare two dates in xpath?

Postnext
Minollo I.Subject: Comparing Dates
Author: Minollo I.
Date: 27 Mar 2006 02:04 PM
It is in XPath 2.0, because dates are part of the data model.

In XPath 1.0 you will need to do that manually through conversion to substrings/numbers...

Minollo

Postnext
David KarrSubject: RE: Comparing Dates
Author: David Karr
Date: 27 Mar 2006 02:46 PM
If you only have Xpath 1.0, you should be able to use the template
versions of the functions from the EXSLT. There is a "date:difference"
function that should do what you need. Go to
for the link for downloads.

> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Monday, March 27, 2006 11:07 AM
> Subject: Comparing Dates
>
>
> From: Minollo I.
>
> It is in XPath 2.0, because dates are part of the data model.
>
> In XPath 1.0 you will need to do that manually through
> conversion to substrings/numbers...
>
> Minollo
>
>
> --
> To reply: mailto:stylus-studio-tech.14459@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
> mailto:stylus-studio-tech.list-request@stylusstudio.com
>
>

Postnext
Mark MaltbySubject: RE: Comparing Dates
Author: Mark Maltby
Date: 27 Mar 2006 03:39 PM
I am new to using xslt's. I have heard about this 'EXSLT' before. What is it all about?

Thanks

Postnext
Minollo I.Subject: RE: Comparing Dates
Author: Minollo I.
Date: 27 Mar 2006 03:46 PM
http://www.exslt.org

Postnext
David KarrSubject: Tip about Stylusdiff.exe
Author: David Karr
Date: 29 Mar 2006 02:13 PM
I just noticed the "tip" about "Stylusdiff.exe". One minor comment: the
second half of the tip references "XMLDiff.exe", which I assume should
be "StylusDiff.exe".

The real question is: is there any value in using this from the command
line? It appears to only store the output in a binary proprietary
format file. This might be useful if the output were text.

Postnext
Minollo I.Subject: Tip about Stylusdiff.exe
Author: Minollo I.
Date: 29 Mar 2006 02:25 PM
>I just noticed the "tip" about "Stylusdiff.exe". One minor comment: the
>second half of the tip references "XMLDiff.exe", which I assume should
>be "StylusDiff.exe".

Yes; thanks for pointing that out, we are fixing it.

>The real question is: is there any value in using this from the command
>line? It appears to only store the output in a binary proprietary
>format file. This might be useful if the output were text.

The output is actually text...
StylusDiff.exe -source c:\books.xml -target c:\books1.xml -description c:\booksdiffs

...will generate this output in c:\booksdiffs.txt (assuming some diffs between books.xml and books1.xml):
Name XPath Line Column Change Description
book /books/book[2] 11 2 Element has been removed
bookid="2" /books/book[2]/@bookid 11 8 Attribute has been removed
pubdate="11/10/2000" /books/book[2]/@pubdate 11 19 Attribute has been removed
title /books/book[2]/title[1] 12 3 Element has been removed
Beginner's Guide to Access 2.0 /books/book[2]/title[1]/text()[1] 12 10 Text has been removed
authors /books/book[2]/authors[1] 13 3 Element has been removed
author /books/book[2]/authors[1]/author[1] 14 4 Element has been removed
Wrox Author Team /books/book[2]/authors[1]/author[1]/text()[1] 14 12 Text has been removed
subject /books/book[2]/subject[1] 16 3 Element has been removed
class="1" /books/book[2]/subject[1]/@class 16 12 Attribute has been removed
Access /books/book[2]/subject[1]/text()[1] 16 22 Text has been removed


Being able to run diffs from a batch process has proved useful to several users, that's why StylusDiff.exe exists.

Minollo

Postnext
David KarrSubject: RE: Tip about Stylusdiff.exe
Author: David Karr
Date: 29 Mar 2006 03:38 PM
Uh, ok. I understand. That's pretty odd, to have "-output" write the
output in one format, and "-description" write it in another format.
Whatever. It works.

> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Wednesday, March 29, 2006 11:28 AM
> Subject: Tip about Stylusdiff.exe
>
>
> From: Minollo I.
>
> >I just noticed the "tip" about "Stylusdiff.exe". One
> minor comment: the >second half of the tip references
> "XMLDiff.exe", which I assume should >be "StylusDiff.exe".
>
> Yes; thanks for pointing that out, we are fixing it.
>
> >The real question is: is there any value in using this
> from the command >line? It appears to only store the
> output in a binary proprietary >format file. This might be
> useful if the output were text.
>
> The output is actually text...
> StylusDiff.exe -source c:\books.xml -target c:\books1.xml
> -description c:\booksdiffs
>
> ...will generate this output in c:\booksdiffs.txt (assuming
> some diffs between books.xml and books1.xml):
> Name XPath Line Column Change Description
> book /books/book[2] 11 2 Element has been removed
> bookid="2" /books/book[2]/@bookid 11 8
> Attribute has been removed
> pubdate="11/10/2000" /books/book[2]/@pubdate 11 19
> Attribute has been removed
> title /books/book[2]/title[1] 12 3 Element has been removed
> Beginner's Guide to Access 2.0
> /books/book[2]/title[1]/text()[1] 12 10 Text
> has been removed
> authors /books/book[2]/authors[1] 13 3
> Element has been removed
> author /books/book[2]/authors[1]/author[1] 14
> 4 Element has been removed
> Wrox Author Team
> /books/book[2]/authors[1]/author[1]/text()[1] 14 12
> Text has been removed
> subject /books/book[2]/subject[1] 16 3
> Element has been removed
> class="1" /books/book[2]/subject[1]/@class 16
> 12 Attribute has been removed
> Access /books/book[2]/subject[1]/text()[1] 16
> 22 Text has been removed
>
>
> Being able to run diffs from a batch process has proved
> useful to several users, that's why StylusDiff.exe exists.
>
> Minollo
>
>
>
>
> --
> To reply: mailto:stylus-studio-tech.14518@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
> mailto:stylus-studio-tech.list-request@stylusstudio.com
>
>

Postnext
Minollo I.Subject: RE: Tip about Stylusdiff.exe
Author: Minollo I.
Date: 29 Mar 2006 03:48 PM
For the record, -output doesn't generate a binary format; it generates a .diff file, which is an XML definition of the diff-ing operation you are defining; and you can re-open that definition inside Stylus Studio and see computed differences graphically.

-output and -description generate two entirely different entities:
* -output generates the *definition* of the XML diff operation
* -description generates the *description* of the differences between the specified documents

Minollo

Postnext
David KarrSubject: RE: Tip about Stylusdiff.exe
Author: David Karr
Date: 29 Mar 2006 05:33 PM
Oh, I see. I was confused by the fact that it was writing it in UTF-16.
I was originally viewing the output in a non-unicode editor, so I
thought it was just binary.

> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Wednesday, March 29, 2006 12:51 PM
> Subject: RE: Tip about Stylusdiff.exe
>
>
> From: Minollo I.
>
> For the record, -output doesn't generate a binary format; it
> generates a .diff file, which is an XML definition of the
> diff-ing operation you are defining; and you can re-open that
> definition inside Stylus Studio and see computed differences
> graphically.
>
> -output and -description generate two entirely different entities:
> * -output generates the *definition* of the XML diff operation
> * -description generates the *description* of the
> differences between the specified documents
>
> Minollo
>
>
> --
> To reply: mailto:stylus-studio-tech.14530@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/
> To (un)subscribe:
> mailto:stylus-studio-tech.list-request@stylusstudio.com
>
>

Postnext
David KarrSubject: Associate XML With Schema ignores space preservation semantics, and is not undoable
Author: David Karr
Date: 14 Apr 2006 01:44 PM
The "Associate XML With Schema" option appears to ignore the "preserve
space" options, and it is not undoable.

I formatted my root element start tag with the attributes all lined up
on separate lines, and I tried this option, and it removed all the
newlines in the root element start tag, and the "Undo" option in the
popup menu was greyed out.

Postnext
Minollo I.Subject: Associate XML With Schema ignores space preservation semantics, and is not undoable
Author: Minollo I.
Date: 14 Apr 2006 01:49 PM
Yes, both behaviors are limitations of the current implementation.

Minollo

Postnext
David KarrSubject: Issues with choosing the SOAP client interface
Author: David Karr
Date: 17 Apr 2006 01:10 PM
Quite a while ago, I was testing the ability to test our web services in
Stylus Studio. I discovered that there were two different client
interfaces I could use, either the MS .NET or Apache Axis interfaces. I
discovered that I would get an unexpected error when I used the Axis
client, and someone on the support forum said that I needed to use the
MS .NET client. I'm trying to get more information about this, but I
unfortunately can't find the email that mentions this, and I can't try
this right now, as I'm trying to get my eval license extended. It think
it's possible that using the Apache Axis client would return a "405"
error, but I'm not certain.

Postnext
Ivan PedruzziSubject: Issues with choosing the SOAP client interface
Author: Ivan Pedruzzi
Date: 17 Apr 2006 01:49 PM

Apache Axis expects a SOAP message as server response, the .NET client doesn't try to interpret the response so any well formed XML works.

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Postnext
David KarrSubject: Why does XSLT preview show adjacent text pieces as separate text nodes?
Author: David Karr
Date: 17 Apr 2006 04:07 PM
In a portion of my stylesheet, I have a block of code like this:

/>/ />/ /> select="substring($dv, 10, 2)"
/>: />: />

When I preview the result of this in "text" mode, it looks like this:

01/11/2006 14:39:21

This output is correct. When I view the result in "tree" mode, it shows
10 separate text elements, like "01", "/", etcetera. This is odd,
because I thought that adjacent text elements were always supposed to be
collapsed into a single text element.

Postnext
Ivan PedruzziSubject: Why does XSLT preview show adjacent text pieces as separate text nodes?
Author: Ivan Pedruzzi
Date: 17 Apr 2006 05:37 PM
>In a portion of my stylesheet,
>I have a block of code like
>this:
>
><xsl:value-of
>select="substring($dv, 5,
>2)"
>/>/<xsl:value-of
>select="substring($dv, 7,
>2)"
>/>/<xsl:value-of
>select="substring($dv, 1,
>4)"
> /><xsl:value-of
>select="substring($dv, 10, 2)"
>/>:<xsl:value-of
>select="substring($dv, 12,
>2)"
>/>:<xsl:value-of
>select="substring($dv, 14,
>2)"
> />
>

That's a very ugly way to do it, use the following instead

<xsl:value-of select="concat(
substring($dv, 5, 2), '/', substring($dv, 7, 2), '/', substring($dv, 1,4),
substring($dv, 10, 2), ':', substring($dv, 12, 2), ':', substring($dv, 14, 2))
"/>


Ivan Pedruzzi
Stylus Studio Team


Postnext
David KarrSubject: Backmap to XML just shows XML file, with no focus on a piece of the XML
Author: David Karr
Date: 17 Apr 2006 04:30 PM
In XSLT preview, I can right-click on a piece of the output and select
"Backmap to XSLT". This puts the line in the XSLT that produced the
selected portion of the output at the top of the window. I'm not
certain just moving the top window line is the best way to emphasize the
matching code, but this is ok.

When I select "Backmap to XML", however, all this seems to do is load
the XML specified as the input source in the scenario and go to the
beginning of the file. It doesn't appear to be focusing on the portion
of the XML the output piece came from. There is a blue cursor in the
margin, but it always points to the first line in the XML file.

Postnext
Ivan PedruzziSubject: Backmap to XML just shows XML file, with no focus on a piece of the XML
Author: Ivan Pedruzzi
Date: 17 Apr 2006 05:40 PM
It's not happening here could you provide a simple test case to reproduce it?

Thank You
Ivan Pedruzzi
Stylus Studio Team

Postnext
David KarrSubject: Unexpected profiling display results
Author: David Karr
Date: 17 Apr 2006 05:45 PM
I enabled the profiler on my stylesheet, and I viewed the profiler
report. The following is an excerpt from my stylesheet. Note that the
first line is line 52 in the stylesheet.


/>/ />/ /> select="substring($dv, 10, 2)"
/>: />: />

Here is an excerpt from the HTML profiling report. I'm not sure how to
interpret the results here. I don't care about the performance numbers
at this point, I just want to understand why it doesn't appear to be
reporting performance numbers for all the expressions in this excerpt.
Of the 7 XSL elements here, it looks like it only reported performance
data for 3 of them. Did the others run so quickly that they fell
beneath a reporting threshold?

9 1112 0.55% 1112 0.55% 1
1112 53 40 caltosiebel.xsl
9 <#Text> 1969 0.97% 1969 0.97% 2 984 54 40 caltosiebel.xsl
9 <#Text> 2045 1.01% 2045 1.01% 2 1022 55 40 caltosiebel.xsl
9 971 0.48% 971 0.48% 1 971 55 68
caltosiebel.xsl
9 1005 0.49% 1005 0.49%
1
1005 56 40 caltosiebel.xsl
9 <#Text> 1961 0.97% 1961 0.97% 2 980 57 40 caltosiebel.xsl
9 <#Text> 3424 1.69% 3424 1.69% 2 1712 58 40 caltosiebel.xsl

Postnext
Ivan PedruzziSubject: Unexpected profiling display results
Author: Ivan Pedruzzi
Date: 17 Apr 2006 06:20 PM
Which XSLT processor are you running?

It may very well be that the code got optimized during execution.
Without a test case there isn't much more we can add.


Ivan Pedruzzi
Stylus Studio Team

Postnext
David KarrSubject: Xquery appears to be stuck in "Processing paused" state
Author: David Karr
Date: 18 Apr 2006 04:25 PM
I have an Xquery, which is basically a copy of the "PARTS-Q1.xquery"
example. I've been able to test it in the debugger, and at one time I
was able to click the "Preview Result" button, and both paths produce
reasonable output.

Now, for some reason, the "Preview Result" button is insensitive,
clicking the "Start Debugging" icon does nothing, and the status line
says "Processing paused". It's like it thinks it's in the middle of a
debugging session. The other "debugging" icons are insensitive (like
"Stop Debugging"), however.

I tried opening a separate copy of the "PARTS-Q1.xquery" example from
the examples directory, and it is not displaying this symptom.

Postnext
David KarrSubject: Trang DTD->Schema wizard appears to not grok paths with spaces
Author: David Karr
Date: 18 Apr 2006 04:53 PM
I tried running the Trang DTD->Schema wizard, using the browse button to
select the file, which was located in a directory path that contains one
or more spaces. When I do that, it fails with the following error:

fatal: input type does not support multiple input files: two arguments
are required

If I instead edit the resulting file path, changing spaces to "%20", it
works correctly. The URL-encoding of this value should be done
automatically.

Postnext
David KarrSubject: XSDDoc schema documentation generator now fails with NullPointerException
Author: David Karr
Date: 18 Apr 2006 05:02 PM
A couple days ago, I had no trouble experimenting with the two XSD
documentation generators, XS3P and XSDdoc. Today, I'm seeing an error
when I try to use the XSDdoc generator. I see the following stack trace
when I run it. I've tried this now with a couple of different
completely unrelated schemas. It's possible that I last did this
successfully with 2006r1. I installed 2006r2 yesterday, so that might
be the difference.

javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.processor.TransformerFactoryImpl could not be
instantiated: java.lang.NullPointerException at
javax.xml.transform.TransformerFactory.newInstance(Unknown Source)
at net.sf.xframe.xsddoc.Processor.initTransformers(Processor.java:557)
at net.sf.xframe.xsddoc.Processor.execute(Processor.java:472)

Postnext
Ivan PedruzziSubject: XSDDoc schema documentation generator now fails with NullPointerException
Author: Ivan Pedruzzi
Date: 18 Apr 2006 05:43 PM
As Minollo already pointed out you have been ignoring the basic forum guide lines, posting randomly new topics under old one, creating a very confusing discussion, making a disservice for the thousand of users that visit this site every day.

Please start a new topic when your message doesn't belong to the thread anymore.

Ivan Pedruzzi
Stylus Studio Team

Postnext
David KarrSubject: RE: XSDDoc schema documentation generator now fails with NullPointerException
Author: David Karr
Date: 18 Apr 2006 07:32 PM
I'm not posting through the web forum interface, I'm sending email from
Outlook. For some reason the default contact I had was for a specific
topic. Sorry I was doing that, but I didn't notice Minollo mentioning
that.

> -----Original Message-----
> From: stylus-studio-tech Listmanager
> [mailto:stylus-studio-tech.listmanager@stylusstudio.com]
> Sent: Tuesday, April 18, 2006 2:46 PM
> Subject: XSDDoc schema documentation generator now fails with
> NullPointerException
>
> From: Ivan Pedruzzi
>
> As Minollo already pointed out you have been ignoring the
> basic forum guide lines, posting randomly new topics under
> old one, creating a very confusing discussion, making a
> disservice for the thousand of users that visit this site every day.
>
> Please start a new topic when your message doesn't belong to
> the thread anymore.
>
> Ivan Pedruzzi
> Stylus Studio Team
>
>
> --
> To reply: mailto:stylus-studio-tech.14872@stylusstudio.com
> To start a new topic: mailto:stylus-studio-tech@stylusstudio.com
> To login: http://www.stylusstudio.com/SSDN/ To (un)subscribe:
> mailto:stylus-studio-tech.list-request@stylusstudio.com
>
>

Posttop
Minollo I.Subject: RE: XSDDoc schema documentation generator now fails with NullPointerException
Author: Minollo I.
Date: 18 Apr 2006 09:29 PM
If you look at the bottom of the email notifications you receive from the forum, you will see something like:

To reply: mailto:stylus-studio-tech.14874@stylusstudio.com
To start a new topic: mailto:stylus-studio-tech@stylusstudio.com

The default behavior when doing an email reply to the notification is to reply to the message itself.

BTW, this will change shortly when a new web forum software will get online.

Minollo

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.