Skip to content

Commit

Permalink
0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Apr 18, 2023
1 parent ae560b9 commit 509f516
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,17 +124,9 @@ Since by default the decorator acts on the previous element, that becomes a prob
</script>
```

>**Note**: When it comes to XSLT, it seems that the common lineage shared between Chrome and WebKit almost guarantees that the XSLT engines will produce identical results. Not so with Firefox. With Firefox (and the other two) this works, which seems like a hack:
>**Note**: When it comes to XSLT, it seems that the common lineage shared between Chrome and WebKit almost guarantees that the XSLT engines will produce identical results. Not so with Firefox. So although we should always include Firefox in our tests, that is even more the case when using XSLT.

```html
<template>
<obj-ml>
<xsl:for-each select="//li">
<li-ml itemprop="products" id="{data/@value}" description="{data/text()}"></li-ml>
</xsl:for-each>
</obj-ml>
</template>
```



Expand Down
1 change: 0 additions & 1 deletion xslt.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export async function xslt(xsltProcessor, realmToSurvey, derivedVals) {
outer.appendChild(xmlSrc);
xmlSrc = outer;
}
console.log(xmlSrc.outerHTML);
const { swap } = await import('trans-render/xslt/swap.js');
swap(xmlSrc, true);
const resultDocument = xsltProcessor.transformToFragment(xmlSrc, document);
Expand Down
1 change: 0 additions & 1 deletion xslt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export async function xslt(xsltProcessor: XSLTProcessor, realmToSurvey: Element,
outer.appendChild(xmlSrc);
xmlSrc = outer;
}
console.log(xmlSrc.outerHTML);
const {swap} = await import('trans-render/xslt/swap.js');
swap(xmlSrc, true);
const resultDocument = xsltProcessor.transformToFragment(xmlSrc, document);
Expand Down

0 comments on commit 509f516

Please sign in to comment.