Re: [xsl] replacing repeating data in cells with cell spans

Subject: Re: [xsl] replacing repeating data in cells with cell spans
From: xptm@xxxxxxx
Date: Fri, 3 Sep 2004 15:18:29 +0100
But i run it through Xalan! Here's the full report:

[debug] EventDispatchThread: javax.xml.transform.TransformerException: "expr"
attribute is not allowed on the xsl:variable element!
[debug] EventDispatchThread:  at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:919
)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.StylesheetHandler.error(StylesheetHandler.java:962
)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(X
SLTElementProcessor.java:358)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.XSLTElementProcessor.setPropertiesFromAttributes(X
SLTElementProcessor.java:305)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.ProcessorTemplateElem.startElement(ProcessorTempla
teElem.java:115)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.j
ava:636)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
[debug] EventDispatchThread:  at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
[debug] EventDispatchThread:  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatch
er.dispatch(Unknown
Source)
[debug] EventDispatchThread:  at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
[debug] EventDispatchThread:  at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.TransformerFactoryImpl.newTemplates(TransformerFac
toryImpl.java:922)
[debug] EventDispatchThread:  at
org.apache.xalan.processor.TransformerFactoryImpl.newTransformerHandler(Trans
formerFactoryImpl.java:679)
[debug] EventDispatchThread:  at
xslt.XSLTUtilities.getTransformerHandlers(XSLTUtilities.java:125)
[debug] EventDispatchThread:  at
xslt.XSLTUtilities.transform(XSLTUtilities.java:93)
[debug] EventDispatchThread:  at
xslt.XSLTProcessor.doTransform(XSLTProcessor.java:509)
[debug] EventDispatchThread:  at
xslt.XSLTProcessor.transform(XSLTProcessor.java:500)
[debug] EventDispatchThread:  at
xslt.XSLTProcessor.actionPerformed(XSLTProcessor.java:367)
[debug] EventDispatchThread:  at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
[debug] EventDispatchThread:  at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton
.java:1839)
[debug] EventDispatchThread:  at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:42
0)
[debug] EventDispatchThread:  at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
[debug] EventDispatchThread:  at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.
java:245)
[debug] EventDispatchThread:  at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
[debug] EventDispatchThread:  at
java.awt.Component.processMouseEvent(Component.java:5100)
[debug] EventDispatchThread:  at
java.awt.Component.processEvent(Component.java:4897)
[debug] EventDispatchThread:  at
java.awt.Container.processEvent(Container.java:1569)
[debug] EventDispatchThread:  at
java.awt.Component.dispatchEventImpl(Component.java:3615)
[debug] EventDispatchThread:  at
java.awt.Container.dispatchEventImpl(Container.java:1627)
[debug] EventDispatchThread:  at
java.awt.Component.dispatchEvent(Component.java:3477)
[debug] EventDispatchThread:  at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
[debug] EventDispatchThread:  at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
[debug] EventDispatchThread:  at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
[debug] EventDispatchThread:  at
java.awt.Container.dispatchEventImpl(Container.java:1613)
[debug] EventDispatchThread:  at
java.awt.Window.dispatchEventImpl(Window.java:1606)
[debug] EventDispatchThread:  at
java.awt.Component.dispatchEvent(Component.java:3477)
[debug] EventDispatchThread:  at
java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
[debug] EventDispatchThread:  at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.jav
a:201)
[debug] EventDispatchThread:  at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
151)
[debug] EventDispatchThread:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
[debug] EventDispatchThread:  at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
[debug] EventDispatchThread:  at
java.awt.EventDispatchThread.run(EventDispatchThread.java:100)


Quoting Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>:

>
> Yes...I had the same problem, if you run it through Xalan it works.
>
> ......................................................................
>
> Aaron Johnson
> Multimedia / GUI development
> Academic Technologies Group [ATG]
> University of the West of England
>
> ext: 81051
> t: 0117 3281051
> www: http://atg.uwe.ac.uk/aaron
> e: aaron2.johnson@xxxxxxxxx
> ......................................................................
>
> ......................................................................
>
> SECURITY POLICY:
>
> Please note that ATG will only accept
> e-mail attachments in the following
> formats:
>
> .doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd
>
> ...as a mac user I will accept files
> compressed using Dropstuff.
> ......................................................................
>
> This communication is intended solely
> for the use of the individual(s) to whom
> it is addressed. Any opinions presented
> are those of the author and do not
> necessarily represent the University of
> the West of England, Bristol.
> ......................................................................
>
>
>
> > From: <xptm@xxxxxxx>
> > Reply-To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Date: Fri, 03 Sep 2004 14:46:48 +0100
> > To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> > Subject: Re: [xsl] replacing repeating data in cells with cell spans
> >
> > Well, i did try to run your example, but it gives me
>
> "expr" attribute is not
> > allowed on the xsl:variable element!
>
> so i can't test it no more...
>
>
> Citando
> > Aaron Johnson <Aaron2.Johnson@xxxxxxxxx>:
>
> > Apologies for the re-post....more
> > informative subject title.
> >
> > Hi...
> >
> > I am fairly new to XSLT so please
> > bear with me...
> >
> > I am trying to populate a timetable with XML data using
> > XSL.
> >
> > The cells of the table are coded into the XSL. When an item appears
> > in the
> > timetable, if it occurs in one or more periods, the cells are
> > populated with
> > data. I would like to have it so that the data stretches
> > across the cells
> > and appears only once instead of repeating.
> >
> > I think I
> > know how it would be done but I just don't have the knowledge to
> > "do
> > it!"
> >
> > Here is an example of how it looks now and how I would like it to
> > look:
> >
> > http://atg.uwe.ac.uk/aaron/xslt/example_output.html
> >
> > Links to the
> > original source documents are at the foot of the page.
> >
> > If anybody can give
> > me any advice I would be most grateful.
> >
> > AJ
> >
> >
> > ......................................................................
> >
> >
> > Aaron Johnson
> > Multimedia / GUI development
> > Academic Technologies Group
> > [ATG]
> > University of the West of England
> >
> > ext: 81051
> > t: 0117 3281051
> >
> > www: http://atg.uwe.ac.uk/aaron
> > e: aaron2.johnson@xxxxxxxxx
> >
> > ......................................................................
> >
> >
> > ......................................................................
> >
> >
> > SECURITY POLICY:
> >
> > Please note that ATG will only accept
> > e-mail
> > attachments in the following
> > formats:
> >
> >
> > .doc,.gif,.jpg,.mdb,.png,.xls,.zip,.psd
> >
> > ...as a mac user I will accept
> > files
> > compressed using Dropstuff.
> >
> > ......................................................................
> >
> >
> > This communication is intended solely
> > for the use of the individual(s) to
> > whom
> > it is addressed. Any opinions presented
> > are those of the author and
> > do not
> > necessarily represent the University of
> > the West of England,
> > Bristol.
> >
> > ......................................................................
> >
> >
> >
> >
> >
> > This email has been independently scanned for viruses and any virus
> > detected
> > has been removed using McAfee anti-virus software
> >
> >
> >
> > --+------------------------------------------------------------------
> >
> > XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > To
> > unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> > or e-mail:
> > <mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> > --+--
> >
> >
>
>
>
>
>
>
>
> O SAPO
> > ja esta livre de vmrus com a Panda Software, fique vocj tambim!
> Clique em:
> > http://antivirus.sapo.pt
>
>
>
> This incoming
> > email to UWE has been independently scanned for viruses and any virus
> detected
> > has been removed using McAfee anti-virus software
>
>
>
>
> This email has been independently scanned for viruses and any virus
detected
> has been removed using McAfee anti-virus software
>







O SAPO ja esta livre de vmrus com a Panda Software, fique vocj tambim!
Clique em: http://antivirus.sapo.pt

Current Thread