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
Posttop
Dominik SadowskiSubject: 2007 R2 java code generation - dynamic params in xpath exp problem
Author: Dominik Sadowski
Date: 07 May 2007 05:53 AM
Hi again

I've some dynamic xpath expressions that use global parameters in my xslt 2.0 stylesheet like the one in example below (modified ver. of Stylus Studio examples - sampleBooksToCatalog.xsl):

<?xml version="1.0" ?>

<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:param name="chosendate" select="'11/12/1999'"/>

<xsl:template match="/">
<Catalog>
<Book>
<xsl:apply-templates select="books/book"/>
</Book>
</Catalog>
</xsl:template>

<xsl:template match="books"/>
<xsl:template match="book"/>

<xsl:template match="*[@pubdate = $chosendate]">
<Title>
<xsl:value-of select="./title"/>
</Title>
</xsl:template>
</xsl:stylesheet>

Preview of that transformation works as expected, but when I generate java code & compile, message aperas: "Parameters which are xpath expressions are not supported". I've chosen build-in Saxon 8.9.0.3 as xslt processor.

Why there is no suport continuation for such java code generation - in pervous R1 version that function was included - it's really usefull.
Is that because of change in saxon 8.9.0.3 java API?

 
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.