Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

Erik Molenaar

@Erik Molenaar
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Getting XML content
    E Erik Molenaar

    Hi, I would use the following stylesheet:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes" media-type="text/html"/>
    <xsl:template match="/">
    <xsl:element name="MyData">
    <xsl:element name="MyTransmitId">
    <xsl:value-of select="//*[name()='transmitId']"/>
    </xsl:element>
    <xsl:element name="MyHeadline">
    <xsl:value-of select="//*[name()='headline']"/>
    </xsl:element>
    <xsl:element name="MyContent">
    <xsl:copy-of select="//*[name()='inlineXML']/*"/>
    </xsl:element>
    </xsl:element>
    </xsl:template>
    </xsl:stylesheet>

    I am not sure this is the best way, but it seems to generate the desired output Erik

    XML / XSL xml html com tutorial question

  • Encoding UTF-8 vs iso-8859-1
    E Erik Molenaar

    you have to take care that the files saved on disk are saved in utf-8 format and not in ansi (most text editors will allow you to change) Erik

    XML / XSL help xml visual-studio

  • Encoding UTF-8 vs iso-8859-1
    E Erik Molenaar

    here is a dummy example I made to show the principle. neither dtd nor schema is provided and the xsl is connected in the xml to allow you to open the xml in ie and see the resulting (minimalistic) web page. rem: the location of my xsl file is hard coded in C:\Temp\ both files are saved on disk in utf-8 txt.xml:

    <?xml version="1.0" encoding="UTF-8"?&ft;
    <?xml-stylesheet type="text/xsl" href="C:\Temp\dummy.xsl"?>
    <bla>üöä</bla>

    dummy.xsl:

    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="iso-8859-1" indent="yes" omit-xml-declaration="yes" media-type="text/html"/>
    <xsl:template match="bla">
    <html>
    <body>
    <xsl:value-of select="."/>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

    hope this helps Erik

    XML / XSL help xml visual-studio

  • Encoding UTF-8 vs iso-8859-1
    E Erik Molenaar

    Hi, did you try to set the output of your sxl file to utf-8 or iso-8859-1? example:

    <xsl:output method="xml" encoding="iso-8859-1" indent="yes" />

    otherwise, some more information might be needed to know where the encoding gets messed up.

    XML / XSL help xml visual-studio

  • Paint a cell in DataGridView
    E Erik Molenaar

    I wanted to do the same thing and found some code similar to what kalyanPaladugu posted in the msdn. At least for me it seemed to work well. I guess creating a custom cell type also has its charme. I will use that idea when I want to do a little more than just do some painting. Thanks for the tip, Erik

    C# question

  • How to match several different elements in the middle of XPath?
    E Erik Molenaar

    The feature you try to use is new to XPath 2.0 One of the ways you could solve it in XPath 1.0 would be: instead of: //rrx[@id='Zones']/(f|s|a)[@name='SP']/p write: //p[(parent::f[(@name='SP')and(parent::rrx[@id='Zones'])]) or (parent::s[(@name='SP')and(parent::rrx[@id='Zones'])]) or (parent::a)[(@name='SP')and(parent::rrx[@id='Zones'])]] It does not look nice, but would be an example.

    XML / XSL xml sharepoint regex tutorial question

  • The CodeProject 2003 CD
    E Erik Molenaar

    Next year:
    Would it be an idea to compose a CD with the 2004 contributions on CodeProject?

    I know someone I would offer a CodeProject 2004 CD containing articles, tips, and code examples next christmas ...

    Site Bugs / Suggestions docker question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups