martedì, dicembre 13, 2005
URIResolver howto
[xsl] URIResolver howto: Si dice che dentro ogni problema c'è un problema più grande che aspetta di uscire.
Verissimo. Per esempio se uno stylesheet XSL è troppo grande conviene partizionarlo in sezioni e usare include o import.
In questo modo si ottiene di poter realizzare anche uno schema di test unitari per le varie sezioni.
Risolto un problema se ne presenta un altro.
Per fare funzionare le input, occorre realizzare una classe che faccia le veci della directory di lavoro nella trasformazione da riga di comando.
"When you need control over xsl:include/import or the document(), you need to use an URIResolver - you cannot do it in your stylesheet. This is very useful when you have a 'primary' XSL[1] and it includes, imports or uses document() to bring in other XML/XSL files/streams from two or more different points of control."
Iscriviti a:
Commenti sul post (Atom)
Nessun commento:
Posta un commento