2017-01-27 2 views
1

J'utilise XSLT pour transformer ma sortie XML en FO. Pour un élément particulier, j'utilise l'attribut wrap-option défini en tant que wrap, pour qu'il s'enroule dans la sortie s'il dépasse la limite de ligne. Il est enveloppé correctement dans la sortie. Mais, je voudrais avoir une fonctionnalité supplémentaire qui, si le texte est enveloppé dans la sortie, il devrait avoir une certaine indication à l'utilisateur sur le retour à la ligne. c'est-à-dire, si une ligne particulière est enveloppée à la ligne suivante, il devrait avoir un symbole "+" à la fin de la ligne partout où il est enveloppé.Marque spéciale sur l'emballage d'un contenu en utilisant XSL-FO

entrée de l'échantillon:

Testing the wrapped input specification for understanding the wrapping has happened. 
Normal line without wrapping. 
Again a lengthy line which exceeds the line limit. 

Sortie courant:

Testing the wrapped input specification 
for understanding the wrapping has happened. 
Normal line without wrapping. 
Again a lengthy line which exceeds 
the line limit. 

sortie requise:

Testing the wrapped input specification+ 
for understanding the wrapping has happened. 
Normal line without wrapping. 
Again a lengthy line which exceeds+ 
the line limit. 

Comment puis-je obtenir ce résultat?

Répondre