Showing posts with label xslt. Show all posts
Showing posts with label xslt. Show all posts

Friday, May 4, 2012

OSB: Reading Java System Property

Apparently in some versions of XSLT it's possible to read System Properties with a function system-property(propertyName)

http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/GettingJavasystempropertieswithsystemproperty.htm

http://www.java2s.com/Tutorial/XML/0100__XSLT-stylesheet/Getsystempropertywithsystempropertyfunction.htm

but in OSB only the second example ('xsl.version') works. If you try to provide 'weblogic.Name' you get:


java.lang.RuntimeException: Invalid argument type 'weblogic.Name' in call to 'system-property()'


Unfortunately in XQuery there is no "system-property" function, so you only have Java as an option (callout or custom xpath). Bummer.

Wednesday, October 5, 2011

Beginning XSLT 2.0

http://www.apress.com/9781590593240


Suggested tools:
www.oxygenxml.com
saxon.sourceforge.net
saxonica.com

source code at http://www.apress.com/book/download.html

mailing list at http://www.mulberrytech.com/xsl/xsl-list
XSLT FAQ at http://www.dpawson.co.uk/xsl/
more resources here http://www.jenitennison.com/




What I have learned from this book:

- differences between xml 1.0 and 1.1
- element xml:lang, space, base, id
- unicode é (see www.unicode.org)




Also here a list of resources.


Anyway I am not passionate about this kind of books. Lots of blablabla and little practicality. An example is worth a thousand blablabla.

Just do the w3cschool http://www.w3schools.com/xsl/ and you will enjoy.