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
Francisco MonteiroSubject: Strange going on
Author: Francisco Monteiro
Date: 11 Aug 2004 01:49 AM
Hi I have a stylesheet whose function is to build another stylesheet.
What seems to be happening is that some names get capitalised
some examples below
<xsl:element name="XSL:TEMPLATE"><xsl:attribute name="match">
<xsl:value-of select="/xsd:schema/xsd:element/@name"/>
</xsl:attribute></xsl:element>

This is making the application unusable. It does not happen all the time
but appears when you switch between files and display schema documents.
The processor in question used was Xalan-J

Postnext
Ivan PedruzziSubject: Strange going on
Author: Ivan Pedruzzi
Date: 11 Aug 2004 04:19 PM
Francisco,

The stylesheet gets re-generated only if you switch tab inside the XSLT editor, for instance if you move from source to mapper, stylus will re-generate the xslt.
What stylus version are you running?
Could you send me (ipedruzz@progress.com) your stylesheet to try?

I tried with the sample below and it seems to work fine.

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsl:template match="/">
<xsl:element name="xsl:stylesheet">
<xsl:attribute name="version">1.0</xsl:attribute>
<xsl:element name="xsl:template">
<xsl:attribute name="match">
<xsl:value-of select="/xsd:schema/xsd:element/@name"/>
</xsl:attribute>
</xsl:element>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

Postnext
Francisco MonteiroSubject: Strange going on
Author: Francisco Monteiro
Date: 16 Aug 2004 01:10 PM
The problems appears to be apparent when I use namespace-alias,
removing this and using xsl:element appers to overcome this.

Francisco

Postnext
Greg KerdemelidisSubject: Strange going on
Author: Greg Kerdemelidis
Date: 27 Aug 2004 12:48 AM
Hi!

I've been using Stylus for a couple of days, and I really like the interface and
functionality. However, there's a bit of a problem I've encountered that
is causing me anguish. It's not a show-stopper, since it's always the
same problem, but it does make things difficult:

I have a (sub)template that takes a parameter, called rowId, and is passed
into the <xsl:template> from another variable called $myId. The problem
always occurs switching between WYSIWYG and source view - your application
sticks an <xsl:value-of select="$myId"/> before the <xsl:param name="rowId"/>
line, which violates the structural rules of XSLT. Further, it explicitly
adds a style="" attribute to a <tr> in my document which screws up the layout
badly (it shouldn't have the style attr, it should use the <style> defined elsewhere
in the document).

So, everytime I switch to WYSIWYG view, i have to remove the <xsl:value-of> calls
in my templates, and remove the annoying "style: top=765px" from my <tr>'s (it
kills the header/footer in the div). FYI The css style in the document for the element
id in question is { top: expression(this.offsetParent.scrollTop); }.

Why does it keep sticking, essentially, trash in my source?? Ideas?

I can supply the template if required, but would rather not post it
onto the board.

Cheers,

-Greg

Posttop
Ivan PedruzziSubject: Strange going on
Author: Ivan Pedruzzi
Date: 27 Aug 2004 05:27 PM
Hi Greg,
I tried to replicate the value-of problem with the sample below; it seems to work fine.
Could you send me (mailto:ipedruzz@progress.com) a test case?

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
</head>
<body>
<xsl:variable name="v" select="1"/>
<xsl:call-template name="p">
<xsl:with-param name="pp" select="$v"/>
</xsl:call-template>
</body>
</html>
</xsl:template>

<xsl:template name="p">
<xsl:param name="pp"/>
<xsl:copy-of select="$pp"/>
</xsl:template>
</xsl:stylesheet>

 
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.