I am trying to run the XSLT below against a comma delimited log file but get a "Content is not allowed in prolog from Saxon-PE 9.2.0.2". I am running this from inside oXygen.
Any insights greatly appreciated,
Chirstopher
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="xs" version="2.0">
<xsl:param name="input-uri" as="xs:string"/>
<xsl:output indent="yes"/>
<xsl:template name="main">
<xsl:variable name="in" select="unparsed-text($input-uri, 'iso-8859-1')"/>
<Log>
<xsl:analyze-string select="$in"
regex="^([^,]+,)([^,]+,)("(([0-9]{4})|([A-Z][0-9])|())",)("(([a-zA-Z]{3}[0-9])|(SERVER)|(EVS_SRV))",)("[0-9_a-zA-Z]+",)("[^"]+")" flags="m">
<xsl:matching-substring>
<LogEntry>
<time>
<xsl:value-of select="regex-group(1)"/>
</time>
<DuplicateTime>
<xsl:value-of select="regex-group(2)"/>
</DuplicateTime>
<Employee>
<xsl:value-of select="regex-group(4)"/>
</Employee>
<Device>
<xsl:value-of select="regex-group(5)"/>
</Device>
<Action>
<xsl:value-of select="regex-group(7)"/>
</Action>
<Description>
<xsl:value-of select="regex-group(9)"/>
</Description>
</LogEntry>
</xsl:matching-substring>
</xsl:analyze-string>
</Log>
</xsl:template>
</xsl:stylesheet>