⚲
Project
Profile
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Search
:
Projects
All Projects
Help
Tour this page
Frequent Planio Questions
Learning Resources
Sign in
Register
Switch Planio account
Open in Planio App
Share current page
Saxon
»
SaxonC
Overview
Issues
Calendar
Blog
Forums
Files
Download (1.54 KB)
Entity size limit in libsaxon-HEC-windows/ SaxonC / GraalVM
ยป entity-expansion-size.xsl
Andreas Oetjen
, 2023-04-19 12:45
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY bxLong "0123456789">
<!ENTITY bxLong100 "&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;&bxLong;">
<!ENTITY bxLong1000 "&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;&bxLong100;">
<!ENTITY bxLong10000 "&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;&bxLong1000;">
<!ENTITY bxLong100000 "&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;&bxLong10000;">
<!ENTITY bxLong1000000 "&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;&bxLong100000;">
]>
<xsl:stylesheet
version=
"1.0"
xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform"
>
<xsl:output
method=
"xml"
version=
"1.0"
encoding=
"UTF-8"
indent=
"yes"
/>
<xsl:template
match=
"/"
>
<root>
<!-- all those are emtpy: -->
<one><xsl:value-of
select=
"system-property('jdk.xml.entityExpansionLimit')"
/></one>
<two><xsl:value-of
select=
"system-property('entityExpansionLimit')"
/></two>
<three><xsl:value-of
select=
"system-property('maxGeneralEntitySizeLimit')"
/></three>
<four><xsl:value-of
select=
"system-property('jdk.xml.maxGeneralEntitySizeLimit')"
/></four>
<!-- this causes the problem: -->
<long>
&bxLong1000000;
</long>
</root>
</xsl:template>
</xsl:stylesheet>
(1-1/1)
Loading...