Create a valid data-source connection to your database. I have used the EBS Application Adapter to create the sequence number for my InvoiceId.
<top:invoiceId>
<xsl:value-of select='oraext:sequence-next-val("AP_INVOICES_INTERFACE_S","jdbc/soa/ebsdev")'/>
</top:invoiceId>
<top:invoiceLineId>
<xsl:value-of select='oraext:sequence-next-val("AP_INVOICE_LINES_INTERFACE_S","jdbc/soa/ebsdev")'/>
</top:invoiceLineId>
As seen above, you can create the sequence number within xslt pointing it to the data-source configured on your weblogic