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 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
Willem MolSubject: stylus xml publisher and xpath
Author: Willem Mol
Date: 28 Aug 2007 09:14 AM
Does anyone know where to find some good indepth information for using xpath in stylus xml publisher.

For example:
Using an element "ModuleID" for a node group "Lines":
how can I say in the sort property that data-type = 'number'?

Another question for example:
How can I format the value 2007-07-07 of the node "ReleaseDate" as a proper date of xml publisher using XPath's editor?

Cheers, Willem

Postnext
Willem MolSubject: stylus xml publisher and xpath
Author: Willem Mol
Date: 29 Aug 2007 08:38 AM
Another one:

Values as euro's
To format <Amount>1500</Amount> to this output: 1.500,00
XSLT goes like this:
<xsl:decimal-format name='euro' decimal-separator=',' grouping-separator/>
<xsl:value-of select="format-number(Amount,'#.###,00','euro')/>

How can i do this in Stylus XML Publisher?

Postnext
Minollo I.Subject: stylus xml publisher and xpath
Author: Minollo I.
Date: 29 Aug 2007 09:02 AM
You won't be able to set the data type as part of the sort information; that limitation is being addressed in the coming new release of Stylus Studio (public in November 2007).

About the format-number() function, you will be able to use the format-number() function as part of the XPath expression associated to a dynamic value; but you won't be able co control the decimal-format instruction from inside publisher. The main reason is that decimal-format is specific to XSLT and XML Publisher is meant to be able to generate both XSLT and XQuery; the same is true for format-number really, but we have created an XQuery function that emulates that. We will consider doing the same for the decimal-format instruction as well.

Posttop
Willem MolSubject: stylus xml publisher and xpath
Author: Willem Mol
Date: 03 Sep 2007 11:20 AM
Thank you very much for your explanation. I hope you will. When I think of a workaround, I will post it here.

Cheers

 
Topic Page 1 2 3 4 5 6 7 8 9 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.