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
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
+ Stylus Studio Technical Forum (14621)
+ Website Feedback (249)
- XSLT Help and Discussion (7625)
-> + Use of before and after string (3) Sticky Topic
-> - How do I substitute element ty... (1)
-> + How does one add working days ... (4)
-> - Help, I have existing XLT and... (1)
-> + Need help on XSLT issue - (2)
-> + EDI to XML Conversion (7)
-> - XML To JSON Conversion using X... (1)
-> + Formatting Paragraphs to same ... (2)
-> - Grouping of records (1)
-> + Problems with xsd 1.1 (4)
-> + XML to HL7 mapping (3)
-> + XSLT 3 and Iterate (2)
-> + XSL-FO to PDF preview (3)
-> + java.lang.RuntimeException: Er... (2)
-> + Create Acroforms with Stylus X... (2)
-> + How to change XSLT parameter s... (3)
-> + how to change format of the da... (2)
-> + Search "Next 8 Results " doesn... (2)
-> - Support for Git (1)
-> + newbee (8)
-- [1-20] [21-40] [41-60] Next
+ XQuery Help and Discussion (2017)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
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

   
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.