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
Steve TrythallSubject: keys and db content
Author: Steve Trythall
Date: 21 Feb 2005 12:07 PM

I am trying to create an xsl:key into content coming from a database.

I tried:

<xsl:key name="design" match="="document('db:jdbc:datadirect:jxtr:oracle://localhost:1521;SID=CHS;schema=CHS;table=PROJECTDESIGN;user=chs;password=173A27;urltype=.xml')/PROJECTDESIGN/row"" use="@id"/>

which failed ;-(

So I then tried a variable to hold the content.

<xsl:variable name="designs" select="document('db:jdbc:datadirect:jxtr:oracle://localhost:1521;SID=CHS;schema=CHS;table=PROJECTDESIGN;user=chs;password=173A27;urltype=.xml')/PROJECTDESIGN/row"/>
<xsl:key name="design" match="$designs" use="@id"/>

This also failed. Is this possible?


Ivan PedruzziSubject: keys and db content
Author: Ivan Pedruzzi
Date: 21 Feb 2005 01:01 PM

In XSLT 1.0 xslkey match attribute supports only patterns as decribed here

You can still use keys without the document function like this
<xsl:key name="design" match="="/PROJECTDESIGN/row"" use="@id"/>

as long as your main input in the scenario dialog points to

Hope this helps

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!  

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.