DesignLiquido / xslt-processor

A JavaScript XSLT processor without native library dependencies
GNU Lesser General Public License v3.0
95 stars 30 forks source link

Xpath parse error #28

Closed jstaerk closed 1 year ago

jstaerk commented 5 years ago

Hi,

when I try to

const XMLXRString = xsltProcess(
    xmlParse(zugferdInvoice),
    xmlParse(XSLTcii2xr)
);

with zugferdInvoice and XSLTcii2xr

I seem to get a

/viewer/node_modules/xslt-processor/dist/xslt-processor.js:1 Uncaught XPath parse error /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ram:SellerTradeParty/ram:SpecifiedTaxRegistration/ram:ID[@schemeID=('VA', 'VAT')]:
/
RelativeLocationPath
/
Step
[
Expr
=
(
Expr
ArgumentRemainder
)
]

any idea anyone?

eechava commented 3 years ago

Same error in here

jstaerk commented 3 years ago

In the meantime you could use the visualize feature that is based on that but if there are xpath parse errors that would rather be a report for kosit, wouldn't it?

leonelsanchesdasilva commented 1 year ago

I was not able to reproduce this. I had another error:

'not implemented: include'

xsl:include is in our backlog to be implemented.

For now I'll close this. Feel free to reopen if we can get a pair or XML/XSLT files to reproduce the issue.