Simplified stylesheet: xsl:version attribute is missing

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

Simplified stylesheet: xsl:version attribute is missing

Dog86
Hallo,

I have now the following xpl file

<?xml version="1.0" encoding="utf-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
 xmlns:oxf="http://www.orbeon.com/oxf/processors"
 xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <p:param type="input" name="instance"/>
  <p:processor name="oxf:email">
      <p:input name="data" transform="oxf:xslt" href="#instance">
          <message>
              <smtp-host>xxx</smtp-host>
              <credentials>
               <username>xxx</username>
               <password>xxx</password>
              </credentials>
              <from>
                  <email>xxx</email>
                  <name>Trove Smith</name>
              </from>
              <to>
                  <email>xxx</email>
                  <name>Jani Smith</name>
              </to>
              <subject>Reminder</subject>
              <body mime-multipart="alternative">
                  <part name="part1" content-type="text/plain">This is part 1</part>
                  <part name="part2" content-type="text/html">
                  <html>
                      <body><p><xsl:value-of select="/form/status/comment1" /></p></body></html></part>
        </body>
          </message>
      </p:input>
  </p:processor>
</p:config>

If I try to run this xpl I get the following error:

Exception Class org.orbeon.oxf.common.ValidationException
Message Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
Simplified stylesheet: xsl:version attribute is missing
Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
Simplified stylesheet: xsl:version attribute is missing
Resource URL oxf:/apps/welcome/send-mail.xpl
Line 14
Column N/A

Whats wrong with the xpl File, what is missing?

Greetings Jakob

2009/7/20 Jakob Mandalka <[hidden email]>
No one any working example for that issue?

Greetings Jakob

2009/8/18 Jakob Mandalka <[hidden email]>

Hallo,

I already saw this part of the documentation. But what I don't understand is how my Xform Form have to look like. I mean, I have to pass the Information (Mail-Address, Text, Attachment etc) from XForm to the xpl Mail-Porocessor. Thats why I asked for an simple and working example.

Greetings

Jakob

----- Original Message ----- From: "Florian Schmitt" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 18, 2009 3:36 PM
Subject: [ops-users] Re: Sending Mail via XForm


Hi Jakob,

at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
processor for sending mails..so I need a xpl File. But how I will "send"
the data entered in my form to this xpl file? How my Xform, especially
my submission and my instance have to look like?


the documentation describes the structure of the data input:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49

There are some examples for multipart messages, too:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753

HTH
florian



--------------------------------------------------------------------------------



--
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: Simplified stylesheet: xsl:version attribute is missing

Hank Ratzesberger
Jakob,

On Jul 20, 2009, at 2:10 AM, Jakob Mandalka wrote:

Hallo,

I have now the following xpl file

<?xml version="1.0" encoding="utf-8"?>
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
 xmlns:oxf="http://www.orbeon.com/oxf/processors"
 xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xs="http://www.w3.org/2001/XMLSchema"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
 <p:param type="input" name="instance"/>
  <p:processor name="oxf:email">
      <p:input name="data" transform="oxf:xslt" href="#instance">
          <message>
              <smtp-host>xxx</smtp-host>
              <credentials>
               <username>xxx</username>
               <password>xxx</password>
              </credentials>
              <from>
                  <email>xxx</email>
                  <name>Trove Smith</name>
              </from>
              <to>
                  <email>xxx</email>
                  <name>Jani Smith</name>
              </to>
              <subject>Reminder</subject>
              <body mime-multipart="alternative">
                  <part name="part1" content-type="text/plain">This is part 1</part>
                  <part name="part2" content-type="text/html">
                  <html>
                      <body><p><xsl:value-of select="/form/status/comment1" /></p></body></html></part>
        </body>
          </message>
      </p:input>
  </p:processor>
</p:config>

If I try to run this xpl I get the following error:

Exception Class org.orbeon.oxf.common.ValidationException
Message Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
Simplified stylesheet: xsl:version attribute is missing
Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
Simplified stylesheet: xsl:version attribute is missing
Resource URL oxf:/apps/welcome/send-mail.xpl
Line 14
Column N/A

Whats wrong with the xpl File, what is missing?

I'm new to this feature also, but common to all xslt, they need
the attribute version="2.0"  or "1.0" if you want the transform 
to fall back to compatible mode.

If that fails, also try xslt:version="2.0" but the namespace is 
normally not expected.

HTH,
Hank


Greetings Jakob

2009/7/20 Jakob Mandalka <[hidden email]>
No one any working example for that issue?

Greetings Jakob

2009/8/18 Jakob Mandalka <[hidden email]>

Hallo,

I already saw this part of the documentation. But what I don't understand is how my Xform Form have to look like. I mean, I have to pass the Information (Mail-Address, Text, Attachment etc) from XForm to the xpl Mail-Porocessor. Thats why I asked for an simple and working example.

Greetings

Jakob

----- Original Message ----- From: "Florian Schmitt" <[hidden email]>
To: <[hidden email]>
Sent: Saturday, July 18, 2009 3:36 PM
Subject: [ops-users] Re: Sending Mail via XForm


Hi Jakob,

at the moment I want to send an E-Mail via an XForm. Ok clear, we have a
processor for sending mails..so I need a xpl File. But how I will "send"
the data entered in my form to this xpl file? How my Xform, especially
my submission and my instance have to look like?


the documentation describes the structure of the data input:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49

There are some examples for multipart messages, too:
http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753

HTH
florian



--------------------------------------------------------------------------------



--
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: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws

Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
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: Simplified stylesheet: xsl:version attribute is missing

Erik Bruchez
Administrator
In reply to this post by Dog86
Add xsl:version="2.0" on your <message> element. That is actually an
XSLT transformation you are running here since you have
transform="oxf:xslt". If you don't need XSLT, you can also rewmove
transform="oxf:xslt".

-Erik

On Mon, Jul 20, 2009 at 2:10 AM, Jakob
Mandalka<[hidden email]> wrote:

> Hallo,
>
> I have now the following xpl file
>
> <?xml version="1.0" encoding="utf-8"?>
> <p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
>  xmlns:oxf="http://www.orbeon.com/oxf/processors"
>  xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>  xmlns:xs="http://www.w3.org/2001/XMLSchema"
>  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>
>  <p:param type="input" name="instance"/>
>   <p:processor name="oxf:email">
>       <p:input name="data" transform="oxf:xslt" href="#instance">
>           <message>
>               <smtp-host>xxx</smtp-host>
>               <credentials>
>                <username>xxx</username>
>                <password>xxx</password>
>               </credentials>
>               <from>
>                   <email>xxx</email>
>                   <name>Trove Smith</name>
>               </from>
>               <to>
>                   <email>xxx</email>
>                   <name>Jani Smith</name>
>               </to>
>               <subject>Reminder</subject>
>               <body mime-multipart="alternative">
>                   <part name="part1" content-type="text/plain">This is part
> 1</part>
>                   <part name="part2" content-type="text/html">
>                   <html>
>                       <body><p><xsl:value-of select="/form/status/comment1"
> /></p></body></html></part>
>         </body>
>           </message>
>       </p:input>
>   </p:processor>
> </p:config>
>
> If I try to run this xpl I get the following error:
>
> Exception Class org.orbeon.oxf.common.ValidationException
> Message Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> Error at line 14 of oxf:/apps/welcome/send-mail.xpl:
> Simplified stylesheet: xsl:version attribute is missing
> Resource URL oxf:/apps/welcome/send-mail.xpl
> Line 14
> Column N/A
> Whats wrong with the xpl File, what is missing?
>
> Greetings Jakob
>
> 2009/7/20 Jakob Mandalka <[hidden email]>
>>
>> No one any working example for that issue?
>>
>> Greetings Jakob
>>
>> 2009/8/18 Jakob Mandalka <[hidden email]>
>>>
>>> Hallo,
>>>
>>> I already saw this part of the documentation. But what I don't understand
>>> is how my Xform Form have to look like. I mean, I have to pass the
>>> Information (Mail-Address, Text, Attachment etc) from XForm to the xpl
>>> Mail-Porocessor. Thats why I asked for an simple and working example.
>>>
>>> Greetings
>>>
>>> Jakob
>>>
>>> ----- Original Message ----- From: "Florian Schmitt"
>>> <[hidden email]>
>>> To: <[hidden email]>
>>> Sent: Saturday, July 18, 2009 3:36 PM
>>> Subject: [ops-users] Re: Sending Mail via XForm
>>>
>>>
>>>> Hi Jakob,
>>>>
>>>>> at the moment I want to send an E-Mail via an XForm. Ok clear, we have
>>>>> a
>>>>> processor for sending mails..so I need a xpl File. But how I will
>>>>> "send"
>>>>> the data entered in my form to this xpl file? How my Xform, especially
>>>>> my submission and my instance have to look like?
>>>>
>>>>
>>>> the documentation describes the structure of the data input:
>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e49
>>>>
>>>> There are some examples for multipart messages, too:
>>>> http://www.orbeon.com/ops/doc/processors-messaging-email#d9e753
>>>>
>>>> HTH
>>>> florian
>>>>
>>>
>>>
>>>
>>> --------------------------------------------------------------------------------
>>>
>>>
>>>>
>>>> --
>>>> 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
>
>


--
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