XSLT Namespaces

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

XSLT Namespaces

ToddG
I have a XALAN processor:

    <p:processor name="oxf:xalan">
        <p:input name="data" href="#data" debug="DATA"/>
        <p:input name="config" href="view.xsl"/>
         <p:output name="data" ref="data" debug="VIEW"/>
    </p:processor>   

And in the debug for "VIEW", I have:

<html xmlns="http://www.w3.org/1999/xhtml">
    <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
        <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml" content="text/html; charset=utf-8" http-equiv="content-type"></meta>
        <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM - Troubleshooting Manual</title>
    </head>
    <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body media_screen  mode_du " id="body" >
        <div xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="toolBar" class="toolBar">
            <div xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="container_MediaList" class="container_html_elt" onClick="fnOnClickMediaList();"></div>
            <input xmlns="" xmlns="http://www.w3.org/1999/xhtml" type="button" id="button_openclose_toc" class="button button_text button_openclose_toc
                        button_openclose_frame_close" title="Open/Close TOC" onClick="fnOpenCloseToc();" onMouseOver="fn_button_toolbar_onMouseOver(this);" onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></input>
...


And when this document is sent to the epilogue, the SAXON processor complains:

2007-11-20 11:20:39,961 http-8080-Processor25 ERROR webapp.ProcessorService null - Exception at null, line -1, column -1, description executing processor
org.xml.sax.SAXException: Saxon requires an XML parser that reports the QName of each element
        at org.orbeon.saxon.event.ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:286)
        at org.orbeon.saxon.event.ReceivingContentHandler.startElement(ReceivingContentHandler.java:234)
        at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87)
        at org.orbeon.oxf.xml.ForwardingContentHandler.startElement(ForwardingContentHandler.java:87)
        at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
        at org.orbeon.oxf.processor.pipeline.TeeProcessor$1.readImpl(TeeProcessor.java:61)
 ...

I have in my VIEW.XSL file:

<xsl:stylesheet  version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="#default">

And when I perform the transformation in <oXygen/>, I get:

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="head">
<META http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="text/html; charset=utf-8" http-equiv="content-type"/>
<link href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css" type="text/css" rel="stylesheet"/>
<title>TSM - Troubleshooting Manual</title>
</head>
<body class="body media_screen  mode_du " id="body">
<div id="toolBar" class="toolBar">
<div id="container_MediaList" class="container_html_elt" onClick="fnOnClickMediaList();"> </div>
...

QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:

xmlns="" xmlns="http://www.w3.org/1999/xhtml"  

 
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

Erik Bruchez
Administrator
Do you have to use Xalan? Can you use oxf:xslt instead?

-Erik

On Nov 20, 2007, at 10:47 AM, ToddG wrote:

>
> I have a XALAN processor:
>
>    <p:processor name="oxf:xalan">
>        <p:input name="data" href="#data" debug="DATA"/>
>        <p:input name="config" href="view.xsl"/>
>         <p:output name="data" ref="data" debug="VIEW"/>
>    </p:processor>
>
> And in the debug for "VIEW", I have:
>
> <html xmlns="http://www.w3.org/1999/xhtml">
>    <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
>        <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> content="text/html; charset=utf-8" http-equiv="content-type"></meta>
>        <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM -
> Troubleshooting Manual</title>
>    </head>
>    <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body
> media_screen  mode_du " id="body" >
>        <div xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="toolBar"
> class="toolBar">
>            <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> id="container_MediaList" class="container_html_elt"
> onClick="fnOnClickMediaList();"></div>
>            <input xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> type="button" id="button_openclose_toc" class="button button_text
> button_openclose_toc
>                        button_openclose_frame_close" title="Open/
> Close TOC"
> onClick="fnOpenCloseToc();"
> onMouseOver="fn_button_toolbar_onMouseOver(this);"
> onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></input>
> ...
>
>
> And when this document is sent to the epilogue, the SAXON processor
> complains:
>
> 2007-11-20 11:20:39,961 http-8080-Processor25 ERROR  
> webapp.ProcessorService
> null - Exception at null, line -1, column -1, description executing
> processor
> org.xml.sax.SAXException: Saxon requires an XML parser that reports  
> the
> QName of each element
> at
> org
> .orbeon
> .saxon
> .event
> .ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:286)
> at
> org
> .orbeon
> .saxon
> .event
> .ReceivingContentHandler.startElement(ReceivingContentHandler.java:
> 234)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.startElement(ForwardingContentHandler.java:
> 87)
> at
> org
> .orbeon
> .oxf
> .xml
> .ForwardingContentHandler.startElement(ForwardingContentHandler.java:
> 87)
> at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
> at
> org.orbeon.oxf.processor.pipeline.TeeProcessor
> $1.readImpl(TeeProcessor.java:61)
> ...
>
> I have in my VIEW.XSL file:
>
> <xsl:stylesheet  version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns="http://www.w3.org/1999/xhtml" exclude-result-
> prefixes="#default">
>
> And when I perform the transformation in <oXygen/>, I get:
>
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head id="head">
> <META http-equiv="Content-Type" content="text/html; charset=utf-8">
> <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
> <link
> href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css 
> "
> type="text/css" rel="stylesheet"/>
> <title>TSM - Troubleshooting Manual</title>
> </head>
> <body class="body media_screen  mode_du " id="body">
> <div id="toolBar" class="toolBar">
> <div id="container_MediaList" class="container_html_elt"
> onClick="fnOnClickMediaList();"> </div>
> ...
>
> QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:
>
> xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>
>
> --
> View this message in context: http://www.nabble.com/XSLT-Namespaces-tf4845625.html#a13863336
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.com.
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

ToddG
These are 1.0 templates from a legacy codebase that have only been
tested with Xalan.

Why?  Does that matter?

On Nov 20, 2007 2:52 PM, Erik Bruchez <[hidden email]> wrote:

> Do you have to use Xalan? Can you use oxf:xslt instead?
>
> -Erik
>
>
> On Nov 20, 2007, at 10:47 AM, ToddG wrote:
>
> >
> > I have a XALAN processor:
> >
> >    <p:processor name="oxf:xalan">
> >        <p:input name="data" href="#data" debug="DATA"/>
> >        <p:input name="config" href="view.xsl"/>
> >         <p:output name="data" ref="data" debug="VIEW"/>
> >    </p:processor>
> >
> > And in the debug for "VIEW", I have:
> >
> > <html xmlns="http://www.w3.org/1999/xhtml">
> >    <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
> >        <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> > content="text/html; charset=utf-8" http-equiv="content-type"></meta>
> >        <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM -
> > Troubleshooting Manual</title>
> >    </head>
> >    <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body
> > media_screen  mode_du " id="body" >
> >        <div xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="toolBar"
> > class="toolBar">
> >            <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> > id="container_MediaList" class="container_html_elt"
> > onClick="fnOnClickMediaList();"></div>
> >            <input xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> > type="button" id="button_openclose_toc" class="button button_text
> > button_openclose_toc
> >                        button_openclose_frame_close" title="Open/
> > Close TOC"
> > onClick="fnOpenCloseToc();"
> > onMouseOver="fn_button_toolbar_onMouseOver(this);"
> > onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></input>
> > ...
> >
> >
> > And when this document is sent to the epilogue, the SAXON processor
> > complains:
> >
> > 2007-11-20 11:20:39,961 http-8080-Processor25 ERROR
> > webapp.ProcessorService
> > null - Exception at null, line -1, column -1, description executing
> > processor
> > org.xml.sax.SAXException: Saxon requires an XML parser that reports
> > the
> > QName of each element
> >       at
> > org
> > .orbeon
> > .saxon
> > .event
> > .ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:286)
> >       at
> > org
> > .orbeon
> > .saxon
> > .event
> > .ReceivingContentHandler.startElement(ReceivingContentHandler.java:
> > 234)
> >       at
> > org
> > .orbeon
> > .oxf
> > .xml
> > .ForwardingContentHandler.startElement(ForwardingContentHandler.java:
> > 87)
> >       at
> > org
> > .orbeon
> > .oxf
> > .xml
> > .ForwardingContentHandler.startElement(ForwardingContentHandler.java:
> > 87)
> >       at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
> >       at
> > org.orbeon.oxf.processor.pipeline.TeeProcessor
> > $1.readImpl(TeeProcessor.java:61)
> > ...
> >
> > I have in my VIEW.XSL file:
> >
> > <xsl:stylesheet  version="1.0"
> > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > xmlns="http://www.w3.org/1999/xhtml" exclude-result-
> > prefixes="#default">
> >
> > And when I perform the transformation in <oXygen/>, I get:
> >
> > <html xmlns="http://www.w3.org/1999/xhtml">
> > <head id="head">
> > <META http-equiv="Content-Type" content="text/html; charset=utf-8">
> > <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
> > <link
> > href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css
> > "
> > type="text/css" rel="stylesheet"/>
> > <title>TSM - Troubleshooting Manual</title>
> > </head>
> > <body class="body media_screen  mode_du " id="body">
> > <div id="toolBar" class="toolBar">
> > <div id="container_MediaList" class="container_html_elt"
> > onClick="fnOnClickMediaList();"> </div>
> > ...
> >
> > QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:
> >
> > xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >
> >
> > --
> > View this message in context: http://www.nabble.com/XSLT-Namespaces-tf4845625.html#a13863336
> > Sent from the ObjectWeb OPS - Users mailing list archive at
> > Nabble.com.
> >
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

Erik Bruchez
Administrator
It could be that this version of Xalan is outputting incorrect  
namepsaces. The version of Xalan we use is quite old (2.5.1), and  
Saxon is much better than Xalan anyway, whatever version of Xalan you  
are looking at.

If you can, just give oxf:xslt (which default to Saxon) a try and see  
how that behaves.

-Erik

On Nov 20, 2007, at 2:35 PM, Todd Gochenour wrote:

> These are 1.0 templates from a legacy codebase that have only been
> tested with Xalan.
>
> Why?  Does that matter?
>
> On Nov 20, 2007 2:52 PM, Erik Bruchez <[hidden email]> wrote:
>> Do you have to use Xalan? Can you use oxf:xslt instead?
>>
>> -Erik
>>
>>
>> On Nov 20, 2007, at 10:47 AM, ToddG wrote:
>>
>>>
>>> I have a XALAN processor:
>>>
>>>   <p:processor name="oxf:xalan">
>>>       <p:input name="data" href="#data" debug="DATA"/>
>>>       <p:input name="config" href="view.xsl"/>
>>>        <p:output name="data" ref="data" debug="VIEW"/>
>>>   </p:processor>
>>>
>>> And in the debug for "VIEW", I have:
>>>
>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>>   <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
>>>       <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>> content="text/html; charset=utf-8" http-equiv="content-type"></meta>
>>>       <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM -
>>> Troubleshooting Manual</title>
>>>   </head>
>>>   <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body
>>> media_screen  mode_du " id="body" >
>>>       <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"  
>>> id="toolBar"
>>> class="toolBar">
>>>           <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>> id="container_MediaList" class="container_html_elt"
>>> onClick="fnOnClickMediaList();"></div>
>>>           <input xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>> type="button" id="button_openclose_toc" class="button button_text
>>> button_openclose_toc
>>>                       button_openclose_frame_close" title="Open/
>>> Close TOC"
>>> onClick="fnOpenCloseToc();"
>>> onMouseOver="fn_button_toolbar_onMouseOver(this);"
>>> onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></
>>> input>
>>> ...
>>>
>>>
>>> And when this document is sent to the epilogue, the SAXON processor
>>> complains:
>>>
>>> 2007-11-20 11:20:39,961 http-8080-Processor25 ERROR
>>> webapp.ProcessorService
>>> null - Exception at null, line -1, column -1, description executing
>>> processor
>>> org.xml.sax.SAXException: Saxon requires an XML parser that reports
>>> the
>>> QName of each element
>>>      at
>>> org
>>> .orbeon
>>> .saxon
>>> .event
>>> .ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:
>>> 286)
>>>      at
>>> org
>>> .orbeon
>>> .saxon
>>> .event
>>> .ReceivingContentHandler.startElement(ReceivingContentHandler.java:
>>> 234)
>>>      at
>>> org
>>> .orbeon
>>> .oxf
>>> .xml
>>> .ForwardingContentHandler
>>> .startElement(ForwardingContentHandler.java:
>>> 87)
>>>      at
>>> org
>>> .orbeon
>>> .oxf
>>> .xml
>>> .ForwardingContentHandler
>>> .startElement(ForwardingContentHandler.java:
>>> 87)
>>>      at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
>>>      at
>>> org.orbeon.oxf.processor.pipeline.TeeProcessor
>>> $1.readImpl(TeeProcessor.java:61)
>>> ...
>>>
>>> I have in my VIEW.XSL file:
>>>
>>> <xsl:stylesheet  version="1.0"
>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>> xmlns="http://www.w3.org/1999/xhtml" exclude-result-
>>> prefixes="#default">
>>>
>>> And when I perform the transformation in <oXygen/>, I get:
>>>
>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>> <head id="head">
>>> <META http-equiv="Content-Type" content="text/html; charset=utf-8">
>>> <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
>>> <link
>>> href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css
>>> "
>>> type="text/css" rel="stylesheet"/>
>>> <title>TSM - Troubleshooting Manual</title>
>>> </head>
>>> <body class="body media_screen  mode_du " id="body">
>>> <div id="toolBar" class="toolBar">
>>> <div id="container_MediaList" class="container_html_elt"
>>> onClick="fnOnClickMediaList();"> </div>
>>> ...
>>>
>>> QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:
>>>
>>> xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>
>>>
>>> --
>>> View this message in context: http://www.nabble.com/XSLT-Namespaces-tf4845625.html#a13863336
>>> Sent from the ObjectWeb OPS - Users mailing list archive at
>>> Nabble.com.
>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>> --
>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]  
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

ToddG
I hear you and agree, however I'm trying to keep variances to a minimum.

How hard is it to upgrade?  Shouldn't I be able to just replace the JAR?


On Nov 20, 2007 5:59 PM, Erik Bruchez <[hidden email]> wrote:

> It could be that this version of Xalan is outputting incorrect
> namepsaces. The version of Xalan we use is quite old (2.5.1), and
> Saxon is much better than Xalan anyway, whatever version of Xalan you
> are looking at.
>
> If you can, just give oxf:xslt (which default to Saxon) a try and see
> how that behaves.
>
> -Erik
>
>
> On Nov 20, 2007, at 2:35 PM, Todd Gochenour wrote:
>
> > These are 1.0 templates from a legacy codebase that have only been
> > tested with Xalan.
> >
> > Why?  Does that matter?
> >
> > On Nov 20, 2007 2:52 PM, Erik Bruchez <[hidden email]> wrote:
> >> Do you have to use Xalan? Can you use oxf:xslt instead?
> >>
> >> -Erik
> >>
> >>
> >> On Nov 20, 2007, at 10:47 AM, ToddG wrote:
> >>
> >>>
> >>> I have a XALAN processor:
> >>>
> >>>   <p:processor name="oxf:xalan">
> >>>       <p:input name="data" href="#data" debug="DATA"/>
> >>>       <p:input name="config" href="view.xsl"/>
> >>>        <p:output name="data" ref="data" debug="VIEW"/>
> >>>   </p:processor>
> >>>
> >>> And in the debug for "VIEW", I have:
> >>>
> >>> <html xmlns="http://www.w3.org/1999/xhtml">
> >>>   <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
> >>>       <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >>> content="text/html; charset=utf-8" http-equiv="content-type"></meta>
> >>>       <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM -
> >>> Troubleshooting Manual</title>
> >>>   </head>
> >>>   <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body
> >>> media_screen  mode_du " id="body" >
> >>>       <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >>> id="toolBar"
> >>> class="toolBar">
> >>>           <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >>> id="container_MediaList" class="container_html_elt"
> >>> onClick="fnOnClickMediaList();"></div>
> >>>           <input xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >>> type="button" id="button_openclose_toc" class="button button_text
> >>> button_openclose_toc
> >>>                       button_openclose_frame_close" title="Open/
> >>> Close TOC"
> >>> onClick="fnOpenCloseToc();"
> >>> onMouseOver="fn_button_toolbar_onMouseOver(this);"
> >>> onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></
> >>> input>
> >>> ...
> >>>
> >>>
> >>> And when this document is sent to the epilogue, the SAXON processor
> >>> complains:
> >>>
> >>> 2007-11-20 11:20:39,961 http-8080-Processor25 ERROR
> >>> webapp.ProcessorService
> >>> null - Exception at null, line -1, column -1, description executing
> >>> processor
> >>> org.xml.sax.SAXException: Saxon requires an XML parser that reports
> >>> the
> >>> QName of each element
> >>>      at
> >>> org
> >>> .orbeon
> >>> .saxon
> >>> .event
> >>> .ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:
> >>> 286)
> >>>      at
> >>> org
> >>> .orbeon
> >>> .saxon
> >>> .event
> >>> .ReceivingContentHandler.startElement(ReceivingContentHandler.java:
> >>> 234)
> >>>      at
> >>> org
> >>> .orbeon
> >>> .oxf
> >>> .xml
> >>> .ForwardingContentHandler
> >>> .startElement(ForwardingContentHandler.java:
> >>> 87)
> >>>      at
> >>> org
> >>> .orbeon
> >>> .oxf
> >>> .xml
> >>> .ForwardingContentHandler
> >>> .startElement(ForwardingContentHandler.java:
> >>> 87)
> >>>      at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
> >>>      at
> >>> org.orbeon.oxf.processor.pipeline.TeeProcessor
> >>> $1.readImpl(TeeProcessor.java:61)
> >>> ...
> >>>
> >>> I have in my VIEW.XSL file:
> >>>
> >>> <xsl:stylesheet  version="1.0"
> >>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >>> xmlns="http://www.w3.org/1999/xhtml" exclude-result-
> >>> prefixes="#default">
> >>>
> >>> And when I perform the transformation in <oXygen/>, I get:
> >>>
> >>> <html xmlns="http://www.w3.org/1999/xhtml">
> >>> <head id="head">
> >>> <META http-equiv="Content-Type" content="text/html; charset=utf-8">
> >>> <meta content="text/html; charset=utf-8" http-equiv="content-type"/>
> >>> <link
> >>> href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css
> >>> "
> >>> type="text/css" rel="stylesheet"/>
> >>> <title>TSM - Troubleshooting Manual</title>
> >>> </head>
> >>> <body class="body media_screen  mode_du " id="body">
> >>> <div id="toolBar" class="toolBar">
> >>> <div id="container_MediaList" class="container_html_elt"
> >>> onClick="fnOnClickMediaList();"> </div>
> >>> ...
> >>>
> >>> QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:
> >>>
> >>> xmlns="" xmlns="http://www.w3.org/1999/xhtml"
> >>>
> >>>
> >>> --
> >>> View this message in context: http://www.nabble.com/XSLT-Namespaces-tf4845625.html#a13863336
> >>> Sent from the ObjectWeb OPS - Users mailing list archive at
> >>> Nabble.com.
> >>>
> >>>
> >>> --
> >>> You receive this message as a subscriber of the [hidden email]
> >>> mailing list.
> >>> To unsubscribe: mailto:[hidden email]
> >>> For general help: mailto:[hidden email]?subject=help
> >>> OW2 mailing lists service home page: http://www.ow2.org/wws
> >>
> >> --
> >> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> >> http://www.orbeon.com/
> >>
> >>
> >>
> >> --
> >> You receive this message as a subscriber of the [hidden email]
> >> mailing list.
> >> To unsubscribe: mailto:[hidden email]
> >> For general help: mailto:[hidden email]?subject=help
> >> OW2 mailing lists service home page: http://www.ow2.org/wws
> >>
> >>
> >
> > --
> > You receive this message as a subscriber of the [hidden email]
> > mailing list.
> > To unsubscribe: mailto:[hidden email]
> > For general help: mailto:[hidden email]?subject=help
> > OW2 mailing lists service home page: http://www.ow2.org/wws
>
> --
> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
> http://www.orbeon.com/
>
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

Erik Bruchez
Administrator
The Xalan we ship is "re-rooted", i.e. it is put in a package starting
with orbeon.apache instead of org.apache. So if you want to upgrade
following this convention, you will have to rebuild Xalan after
changing the package names.

However, you can also just add a new XSLT processor that refers to a
standard Xalan processor in the classpath. You can do so under
RESOURCES/config/custom-processors.xml:

<processors xmlns:oxf="http://www.orbeon.com/oxf/processors">
     <processor name="oxf:standard-xalan">
         <instantiation name="oxf:generic-xslt-1.0">
             <input name="transformer">
                 <config>
                     
<class>org.apache.xalan.processor.TransformerFactoryImpl</class>
                 </config>
             </input>
             <input name="attributes">
                 <attributes xmlns:xs="http://www.w3.org/2001/ 
XMLSchema">
                     <attribute as="xs:boolean" name="http://xml.apache.org/xalan/features/incremental 
" value="false"/>
                 </attributes>
             </input>
         </instantiation>
     </processor>
</processors>

This makes a processor called oxf:standard-xalan available in any
pipelines.

In fact, I don't see why we wouldn't put this in our list of
processors by default, so I am committing this change as well.

-Erik

On Nov 20, 2007, at 5:41 PM, Todd Gochenour wrote:

> I hear you and agree, however I'm trying to keep variances to a  
> minimum.
>
> How hard is it to upgrade?  Shouldn't I be able to just replace the  
> JAR?
>
>
> On Nov 20, 2007 5:59 PM, Erik Bruchez <[hidden email]> wrote:
>> It could be that this version of Xalan is outputting incorrect
>> namepsaces. The version of Xalan we use is quite old (2.5.1), and
>> Saxon is much better than Xalan anyway, whatever version of Xalan you
>> are looking at.
>>
>> If you can, just give oxf:xslt (which default to Saxon) a try and see
>> how that behaves.
>>
>> -Erik
>>
>>
>> On Nov 20, 2007, at 2:35 PM, Todd Gochenour wrote:
>>
>>> These are 1.0 templates from a legacy codebase that have only been
>>> tested with Xalan.
>>>
>>> Why?  Does that matter?
>>>
>>> On Nov 20, 2007 2:52 PM, Erik Bruchez <[hidden email]> wrote:
>>>> Do you have to use Xalan? Can you use oxf:xslt instead?
>>>>
>>>> -Erik
>>>>
>>>>
>>>> On Nov 20, 2007, at 10:47 AM, ToddG wrote:
>>>>
>>>>>
>>>>> I have a XALAN processor:
>>>>>
>>>>>  <p:processor name="oxf:xalan">
>>>>>      <p:input name="data" href="#data" debug="DATA"/>
>>>>>      <p:input name="config" href="view.xsl"/>
>>>>>       <p:output name="data" ref="data" debug="VIEW"/>
>>>>>  </p:processor>
>>>>>
>>>>> And in the debug for "VIEW", I have:
>>>>>
>>>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>>>>  <head xmlns="" xmlns="http://www.w3.org/1999/xhtml" id="head">
>>>>>      <meta xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>>> content="text/html; charset=utf-8" http-equiv="content-type"></
>>>>> meta>
>>>>>      <title xmlns="" xmlns="http://www.w3.org/1999/xhtml">TSM -
>>>>> Troubleshooting Manual</title>
>>>>>  </head>
>>>>>  <body xmlns="" xmlns="http://www.w3.org/1999/xhtml" class="body
>>>>> media_screen  mode_du " id="body" >
>>>>>      <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>>> id="toolBar"
>>>>> class="toolBar">
>>>>>          <div xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>>> id="container_MediaList" class="container_html_elt"
>>>>> onClick="fnOnClickMediaList();"></div>
>>>>>          <input xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>>> type="button" id="button_openclose_toc" class="button button_text
>>>>> button_openclose_toc
>>>>>                      button_openclose_frame_close" title="Open/
>>>>> Close TOC"
>>>>> onClick="fnOpenCloseToc();"
>>>>> onMouseOver="fn_button_toolbar_onMouseOver(this);"
>>>>> onMouseOut="fn_button_toolbar_onMouseOut(this);" value="TOC"></
>>>>> input>
>>>>> ...
>>>>>
>>>>>
>>>>> And when this document is sent to the epilogue, the SAXON  
>>>>> processor
>>>>> complains:
>>>>>
>>>>> 2007-11-20 11:20:39,961 http-8080-Processor25 ERROR
>>>>> webapp.ProcessorService
>>>>> null - Exception at null, line -1, column -1, description  
>>>>> executing
>>>>> processor
>>>>> org.xml.sax.SAXException: Saxon requires an XML parser that  
>>>>> reports
>>>>> the
>>>>> QName of each element
>>>>>     at
>>>>> org
>>>>> .orbeon
>>>>> .saxon
>>>>> .event
>>>>> .ReceivingContentHandler.getNameCode(ReceivingContentHandler.java:
>>>>> 286)
>>>>>     at
>>>>> org
>>>>> .orbeon
>>>>> .saxon
>>>>> .event
>>>>> .ReceivingContentHandler
>>>>> .startElement(ReceivingContentHandler.java:
>>>>> 234)
>>>>>     at
>>>>> org
>>>>> .orbeon
>>>>> .oxf
>>>>> .xml
>>>>> .ForwardingContentHandler
>>>>> .startElement(ForwardingContentHandler.java:
>>>>> 87)
>>>>>     at
>>>>> org
>>>>> .orbeon
>>>>> .oxf
>>>>> .xml
>>>>> .ForwardingContentHandler
>>>>> .startElement(ForwardingContentHandler.java:
>>>>> 87)
>>>>>     at org.orbeon.oxf.xml.SAXStore.replay(SAXStore.java:165)
>>>>>     at
>>>>> org.orbeon.oxf.processor.pipeline.TeeProcessor
>>>>> $1.readImpl(TeeProcessor.java:61)
>>>>> ...
>>>>>
>>>>> I have in my VIEW.XSL file:
>>>>>
>>>>> <xsl:stylesheet  version="1.0"
>>>>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>>>>> xmlns="http://www.w3.org/1999/xhtml" exclude-result-
>>>>> prefixes="#default">
>>>>>
>>>>> And when I perform the transformation in <oXygen/>, I get:
>>>>>
>>>>> <html xmlns="http://www.w3.org/1999/xhtml">
>>>>> <head id="head">
>>>>> <META http-equiv="Content-Type" content="text/html;  
>>>>> charset=utf-8">
>>>>> <meta content="text/html; charset=utf-8" http-equiv="content-
>>>>> type"/>
>>>>> <link
>>>>> href="http://localhost:8080/SkyPreview/pub_stylesheet/cus/jv/tsm/html/tsm_frame.css
>>>>> "
>>>>> type="text/css" rel="stylesheet"/>
>>>>> <title>TSM - Troubleshooting Manual</title>
>>>>> </head>
>>>>> <body class="body media_screen  mode_du " id="body">
>>>>> <div id="toolBar" class="toolBar">
>>>>> <div id="container_MediaList" class="container_html_elt"
>>>>> onClick="fnOnClickMediaList();"> </div>
>>>>> ...
>>>>>
>>>>> QUESTION: HOW DO I GET RID OF THE ERRONEOUS DEFAULT NAMESPACE:
>>>>>
>>>>> xmlns="" xmlns="http://www.w3.org/1999/xhtml"
>>>>>
>>>>>
>>>>> --
>>>>> View this message in context: http://www.nabble.com/XSLT-Namespaces-tf4845625.html#a13863336
>>>>> Sent from the ObjectWeb OPS - Users mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>>
>>>>> --
>>>>> You receive this message as a subscriber of the [hidden email]
>>>>> mailing list.
>>>>> To unsubscribe: mailto:[hidden email]
>>>>> For general help: mailto:[hidden email]?subject=help
>>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>> --
>>>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>>>> http://www.orbeon.com/
>>>>
>>>>
>>>>
>>>> --
>>>> You receive this message as a subscriber of the [hidden email]
>>>> mailing list.
>>>> To unsubscribe: mailto:[hidden email]
>>>> For general help: mailto:[hidden email]?subject=help
>>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>>>
>>>>
>>>
>>> --
>>> You receive this message as a subscriber of the [hidden email]
>>> mailing list.
>>> To unsubscribe: mailto:[hidden email]
>>> For general help: mailto:[hidden email]?subject=help
>>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>> --
>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>>
>> --
>> You receive this message as a subscriber of the [hidden email]  
>> mailing list.
>> To unsubscribe: mailto:[hidden email]
>> For general help: mailto:[hidden email]?subject=help
>> OW2 mailing lists service home page: http://www.ow2.org/wws
>>
>>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

ToddG
Beautiful!  It works and the namespace issue is fixed.  Thanks, Erik.

I'm building a proof of concept that utilizes XPL and the eXist
database with a 40Meg XML document.  I've got it working in three days
(though there's still a lot of details to complete).  This replaces
proprietary code (database and transformation pipeline) that took 2
years to complete.  Needless to say, this prototype out-performs the
existing code by orders of magnitude.

Thanks are in order to the folks at Orbeon (and the crew at eXist, of
course) on this Thanksgiving holiday.

So "thanks."


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XSLT Namespaces

Erik Bruchez
Administrator
Todd,

And thank you very much for the positive feedback, we definitely  
appreciate it!

-Erik

On Nov 21, 2007, at 2:02 PM, Todd Gochenour wrote:

> Beautiful!  It works and the namespace issue is fixed.  Thanks, Erik.
>
> I'm building a proof of concept that utilizes XPL and the eXist
> database with a 40Meg XML document.  I've got it working in three days
> (though there's still a lot of details to complete).  This replaces
> proprietary code (database and transformation pipeline) that took 2
> years to complete.  Needless to say, this prototype out-performs the
> existing code by orders of magnitude.
>
> Thanks are in order to the folks at Orbeon (and the crew at eXist, of
> course) on this Thanksgiving holiday.
>
> So "thanks."
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws