public class Xsltpre
extends java.lang.Object
(?=ident=XPATH?)
| The XPATH expression is stored and assigned to the alias ident .
| ||||||
(?!path?)
| Value of the element or attribut given by expression. path
is either a XPATH expression or, if starting with = an alias representing a XPATH.
The resulting code in XSLT is:</xsl:text><xsl:value-of select="path" /><xsl:text> | ||||||
(?:name[:path](parameter=value, ...)?)
| call of the named template name with selecting
the path before, with the named parameter
with theire given value .
|
(?=myPath=element1/element2/@value?) ...<xsl:text> The text with info:(?@=myPath?) and info2:(?@attrib?) is written with (?:callname()?) and with (?:callname2:"callpath"(par1='text' + xxx)?)</xsl:text>is converted to
... TODO
Modifier and Type | Class and Description |
---|---|
private class |
Xsltpre.CmdLine
Inner class for invocation from command line, created only in the static main routine.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.TreeMap<java.lang.String,java.lang.String> |
aliases |
(package private) boolean |
bGenerateOnlyifNecessary
If false than generate fOut always, if true than generate only if the fIn is newer.
|
(package private) MainCmd_ifc |
console |
(package private) java.io.File |
fIn
The input xsl file with special entries.
|
(package private) java.io.File |
fOut
The generated xsl file in standard format.
|
(package private) java.lang.String |
sEncoding
encoding argument
|
(package private) java.lang.String |
sFileIn
Cmdline-argument, set on -i option.
|
(package private) java.lang.String |
sFileOut
Cmdline-argument, set on -o option.
|
(package private) java.lang.String[] |
sKeys |
Modifier | Constructor and Description |
---|---|
private |
Xsltpre() |
|
Xsltpre(java.io.File fIn,
java.io.File fOut) |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Generate the output file, but only if it is older as the input, or it don't exists,
or bGenerateAlways is set to true.
|
private java.lang.String |
ifcondition(StringPart spLineIn) |
static void |
main(java.lang.String[] args)
main started from java
|
private void |
setAlias(StringPart spLineIn) |
private void |
setAliasOld(StringPart spLineIn) |
private void |
setCallTemplate(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setCallTemplateOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElif(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElifOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElse(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElseEnd(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElseEndOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setElseOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setIf(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setIfEnd(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setIfEndOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setIfNext(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setIfOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setParamValueMultiContent(java.lang.StringBuffer sLineOut,
java.lang.String sParamValue) |
private void |
setParamValueSelect(java.lang.StringBuffer sLineOut,
java.lang.String sParamValue) |
private void |
setValueOf(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
private void |
setValueOfOld(java.lang.StringBuffer sLineOut,
StringPart spLineIn) |
(package private) void |
stop() |
java.lang.String sFileIn
java.lang.String sFileOut
java.lang.String sEncoding
java.io.File fIn
java.io.File fOut
boolean bGenerateOnlyifNecessary
final java.lang.String[] sKeys
MainCmd_ifc console
java.util.TreeMap<java.lang.String,java.lang.String> aliases
public Xsltpre(java.io.File fIn, java.io.File fOut)
private Xsltpre()
public void execute()
private void setAlias(StringPart spLineIn)
private void setValueOf(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setCallTemplate(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setParamValueSelect(java.lang.StringBuffer sLineOut, java.lang.String sParamValue)
private void setParamValueMultiContent(java.lang.StringBuffer sLineOut, java.lang.String sParamValue)
private void setIf(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private java.lang.String ifcondition(StringPart spLineIn)
private void setElif(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setElse(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setIfNext(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setIfEnd(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setElseEnd(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setAliasOld(StringPart spLineIn)
private void setValueOfOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setCallTemplateOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setIfOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setElifOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setElseOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setIfEndOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
private void setElseEndOld(java.lang.StringBuffer sLineOut, StringPart spLineIn)
public static void main(java.lang.String[] args)
void stop()